India’s Best Job Seekers and Training Platform Forums Data Structure Design a data structure which could perform …

  • Design a data structure which could perform …

     Akash  updated 11 months, 3 weeks ago 1 Member · 1 Post
  • Akash 

    Administrator
    at

    Design a data structure which could perform the following operations in O(1):

    – Insert(), Delete(), Search(), getRandom()

    getRandom() should pick a “random” element from your data structure, and should not be predictable (for instance always picking the “first” element from your DS).

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 02nd November 2020. Attend one week free demo classes.Register Now

New Report

Close