Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#1445 closed defect (fixed)

on Collection.BinaryTree bug of preorderTraversal

Reported by: guest Owned by: ttrenka
Priority: high Milestone:
Component: General Version: 0.3
Keywords: binarytree preorder flag Cc:
Blocked by: Blocking:


At the end of code ,the js code assign preorder to flag of int-0.

but when in toString() function,there is an if (flag) statement.

If use int-0 as flag, it will always neglect preorder and always use inOrderTraversal. so it is better to change to char-"0" to avoid this bug

Change History (3)

comment:1 Changed 11 years ago by dylan

  • Milestone set to 0.4
  • Owner changed from any to ttrenka

Tom, a very easy change if you agree with the bug...

comment:2 Changed 11 years ago by ttrenka

  • Resolution set to fixed
  • Status changed from new to closed

(In [5692]) Fixes #1445 by changing the values of the order enumeration (I have no idea what line this bug poster is referring to, it would have helped if they'd used the actual variable names in the code or at least posted a line number.)

comment:3 Changed 10 years ago by anonymous

  • Milestone 0.4 deleted

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.