Open ishu9bansal opened 4 years ago
Implementation and use case https://leetcode.com/submissions/detail/350265425/
It's inefficient when inserts are not so random. To improve on that, we can restructure the underlying tree, making it balanced, which can be done in O(n) time.
Implementation and use case https://leetcode.com/submissions/detail/350265425/