Refactored App.java to remove duplicate code and elegantly demonstrate each implementation of the Iterator interface. Removed the redundant ItemIterator interface. Added insert() method to TreeNode class to allow for more elegant construction of BSTs.
This commit is contained in:
BIN
iterator/etc/bst.jpg
Normal file
BIN
iterator/etc/bst.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
Binary file not shown.
Before Width: | Height: | Size: 99 KiB |
Reference in New Issue
Block a user