Randomized LeetCode Problems: All 12,
With Python Solutions

Every problem in this library that LeetCode tags Randomized. 12 of them carry a complete Python solution, a worked example and the time and space complexity of the approach.

Easy
0
Medium
9
Hard
3

Randomized problems by difficulty

Problems with a complete Python solution are listed first, then by ascending problem number.

Medium (9)

Medium problems
No.Problem
0380Insert Delete GetRandom O(1)
0382Linked List Random Node
0384Shuffle an Array
0398Random Pick Index
0470Implement Rand10() Using Rand7()
0478Generate Random Point in a Circle
0497Random Point in Non-overlapping Rectangles
0519Random Flip Matrix
0528Random Pick with Weight

Hard (3)

Hard problems
No.Problem
0381Insert Delete GetRandom O(1) - Duplicates allowed
0710Random Pick with Blacklist
1515Best Position for a Service Centre

Eyes only

When the Randomized problem arrives live.

In the live round, Stealth Interview reads the problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer says. It's a desktop app for macOS and Windows, invisible to screen sharing.