Coding problems · by difficulty

4 hard coding problems, solved step by step.

Problems where the straightforward answer is too slow and the fast one needs a real insight: a monotonic stack, a full DP table, or backtracking that prunes early. Each one is solved in 22 languages from brute force to optimal, with code you can run on the page.

0/4 solved
  1. Trapping Rain WaterHard
  2. N-QueensHard
  3. Edit DistanceHard
  4. Largest Rectangle in HistogramHard