Amazon Interview Question
Software Engineer / DevelopersB-tree or B+ tree would be a better choice to implement with an additional function to restructure the tree
As the number of levels in the B-tree or B+ is less the overall levels decreases thereby reducing the overall complexity in logn format. As the max number of levels in the B-tree or B+ can be 3 or 4.. the overall complexity is close to constant time
Can u please, provide more information?
- babusek October 27, 2010do u want to implement a tree(BST/binary Tree) using the Above Map Interface?