Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1445 closed defect (fixed)

on Collection.BinaryTree bug of preorderTraversal

Reported by: guest Owned by: Tom Trenka
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 15 years ago by dylan

Milestone: 0.4
Owner: changed from any to Tom Trenka

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

comment:2 Changed 15 years ago by Tom Trenka

Resolution: fixed
Status: newclosed

(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 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.