Рет қаралды 807
In this video we are solving Leetcode Problem # 380: Insert/Delete/GetRandom() O(1). This is an interesting question in that we have to use two data structures under the hood to solve this question.
This is quite a good interview question because it really tests your knowledge of the basics of the core data structures you use everyday. The solution is quite simple but requires you to think about the properties of the data structures to figure it out.