Python coding

195 interview problems by pattern. Write the function and run it against the tests right here: Python runs in your browser.

Mock interviewTwo problems in 45 minutes, no hintsLike a real round: an easier and a harder problem, from different patterns.

Hash maps, sets and prefix sums

Prefix sums and difference arrays

Two pointers

Sliding window

Binary search and search on the answer

Linked lists

Binary trees and BSTs

Stacks and monotonic stacks

Heaps and top-K

Interval problems: sort and sweep

Graph traversal: BFS and DFS

Topological sort

Union-Find (Disjoint Set Union)

Shortest Paths (BFS, Dijkstra, Bellman-Ford)

Dynamic Programming

Greedy algorithms

Backtracking

Tries (Prefix Trees)

Design a data structure (LRU cache)