Randomized DSA Problems

12 randomized problems for coding interviews and campus placements, with hints and company tags. Below are all 12: 0 easy, 9 medium and 3 hard. Practise them free on InternHack and track what you have solved.

Randomized problems, easiest first

  1. Generate Random Point in a Circle (Medium)
  2. Implement Rand10() Using Rand7() (Medium)
  3. Insert Delete GetRandom O(1) (Medium)
  4. Linked List Random Node (Medium)
  5. Random Flip Matrix (Medium)
  6. Random Pick Index (Medium)
  7. Random Pick with Weight (Medium)
  8. Random Point in Non-overlapping Rectangles (Medium)
  9. Shuffle an Array (Medium)
  10. Best Position for a Service Centre (Hard)
  11. Insert Delete GetRandom O(1) - Duplicates allowed (Hard)
  12. Random Pick with Blacklist (Hard)

Companies that ask randomized problems

Before your interview

Most resumes are filtered by software before a recruiter reads them. Check your resume ATS score free, no signup needed.

Other DSA topics