Open nnseva opened 9 years ago
fixed algorithm and testcases have been extended
thanks for the feedback. I will take a look. Regards Monmohan
On Sat, Jan 3, 2015 at 10:09 PM, Vsevolod Novikov notifications@github.com wrote:
fixed algorithm and testcases have been extended
— Reply to this email directly or view it on GitHub https://github.com/monmohan/dsjslib/issues/9#issuecomment-68596007.
+1
One task frequently appears in the binary tree: search neighbors of non-existent key. The following code implements such algorithm for the BinarySearchTree:
(file extend_binary_tree.js)
some test cases are present below:
The same might be implemented for other types of tree
UPD: fixed algorithm and testcases have been extended