← Questions

Account scheduler with locking and LRU selection

0
StripeCodingLast asked Dec 2025

Build a scheduler that hands out accounts from a pool to callers. An account that is handed out is locked until it is released, and when several accounts are free the scheduler picks the least recently used one.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding