JobsJob TrackerJob alerts

ElasticDevs · 2 questions

All 2Coding 2
  • Merge two sorted linked listsCoding
  • Design a Randomizer class with O(1) random methodCoding
← ElasticDevs questions
  1. Interview questions
  2. ElasticDevs
  3. Design a Randomizer class with O(1) random method
Coding

Design a Randomizer class with O(1) random method

Filed under ElasticDevs

The question

Implement a Randomizer class supporting add, remove, and a random method that returns a random number in O(1) time complexity.

No write-up yet. Related questions below have one.

← Merge two sorted linked lists

Collected from public candidate posts and coding forums. Updated Nov 2026.