CORE SKILLS · 36 PROBLEMS · 4 LANGUAGES
Write the everyday data structures and algorithms yourself.
No libraries: implement a dynamic array, linked list, hash map, heap, LRU cache, quicksort, merge sort, KMP, BFS, Dijkstra, minimum spanning trees, union-find, a trie, a segment tree and a Fenwick tree yourself, then use locks, condition variables and semaphores for multithreaded problems such as run in order, dining philosophers, a bounded blocking queue and a read-write lock, and finally write object-oriented design (LLD) classes for a parking lot, an elevator, an ATM, a vending machine, Splitwise, movie seat booking, a parcel locker and hotel booking, judged like the rest. Every problem has Python, C++, Java and Go starters with a fixed driver, judged online.
Linear structures3
Hashing & heaps3
Sorting & searching5
- Binary Search: lower_bound and upper_boundlower_bound and upper_bound on a half-open range
- QuicksortLomuto partition and random pivots
- Merge Sort and InversionsA stable merge that counts inversions on the way
- Counting SortCounts, prefix sums and a stable placement pass
- KMP String MatchingThe prefix function and linear matching that never backs up
Graphs6
- Grid BFS Shortest PathFewest steps by expanding layer by layer from a queue
- Topological Sort (Lexicographically Smallest)Kahn's algorithm, a min-heap and cycle detection
- Dijkstra's Shortest PathsSingle-source shortest paths with a heap and lazy deletion
- Bellman-Ford and Negative CyclesNegative weights, n - 1 relaxation rounds and negative cycles
- Kruskal's Minimum Spanning TreeA minimum spanning tree from sorted edges and union-find
- Prim's Minimum Spanning Tree (Dense Graphs)An O(n²) minimum spanning tree on an adjacency matrix
Advanced structures4
Concurrency7
- Run in OrderTwo "done" signals put three jobs in order
- Take TurnsTwo threads taking strict turns
- Zero, Even, OddThree threads relaying 0 1 0 2 …
- Building WaterSemaphores and a barrier pair two hydrogens with an oxygen
- Dining PhilosophersNumbered forks break the circular wait
- Bounded Blocking QueueProducers and consumers on one lock and two conditions
- Read-Write LockShared readers and an exclusive writer from one lock and a condition
Object-oriented design (LLD)8
- Parking LotSpot allocation, tickets and hourly fees
- Elevator SchedulingLOOK scheduling with stops sorted by direction
- ATMThe State pattern, PIN lockout and note dispensing
- Vending MachineA three-state machine, escrow and greedy change
- Hotel BookingInventory counted per night, with weekend rates
- SplitwiseSplits that never lose a cent, and a fixed settlement rule
- Movie Seat BookingAll-or-nothing seat holds that expire
- Parcel LockerCompartments, pickup codes and a brute-force lockout