In this article, we will understand in depth the designing of a data structure that supports "insert value", "delete value" and "get random" operations where these tasks are performed in constant time O(1).
Table of contentsProblem statement naive solutionsHash function and Hash tableHashing algorithmCollisionsNew Data Structure DesignCreating the data structureOutputProblem statement naive solutions
This problem requires us to create our own data structure that performs "insert...
Published on September 20, 2021 08:44