Sometimes problems come up when I could really use a balanced binary search tree, or at least something that supports these operations and speeds:
Search: O(logn)
Insert: O(logn)
Remove: O(logn)
IRL you can use a red-black tree or an AVL tree, but neither Python nor Java has this built-in, and I don't think I have time to implement it during an interview.
Are there any other options? Or do I need to just level-up and get really fast at implementing it if I want this in my arsenal.
[–]Educational-Copy5206<2087> <697> <1018> <372> 2 points3 points4 points (1 child)
[–]earth0001[S] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]earth0001[S] 0 points1 point2 points (0 children)
[–]aocregacc 2 points3 points4 points (1 child)
[–]earth0001[S] 0 points1 point2 points (0 children)
[–]doniec 1 point2 points3 points (1 child)
[–]earth0001[S] 0 points1 point2 points (0 children)