Skip to content

Commit a3259ce

Browse files
authored
Merge pull request #57 from csvistool/bugsFix
fix AVL find bug
2 parents be3f627 + 4e6600e commit a3259ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/algo/AVL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default class AVL extends Algorithm {
306306
this.cmd(act.setHighlight, tree.graphicID, 0);
307307
} else {
308308
// if (tree.data > value) {
309-
if (this.compare(tree.data, value)) {
309+
if (this.compare(tree.data, value) > 0) {
310310
this.cmd(
311311
act.setText,
312312
0,

0 commit comments

Comments
 (0)