Sweaty Imposter

Problems

Each problem sits under the pattern that solves it. Open one for examples, staged hints, the approach, and Java and Python solutions.

Sliding Window

Read the Guide

Two Pointers

Read the Guide

Fast & Slow Pointers (Floyd's)

Read the Guide

Merge Intervals

Read the Guide

Cyclic Sort

Read the Guide

In-Place Reversal of LinkedList

Read the Guide

Subsets (BFS-style generation)

Read the Guide

Bitwise XOR

Read the Guide

Top K Elements

Read the Guide

K-Way Merge

Read the Guide

0/1 Knapsack (DP)

Read the Guide

Topological Sort

Read the Guide

Graph BFS/DFS

Read the Guide

Trie (Prefix Tree)

Read the Guide

Union-Find (DSU)

Read the Guide

Monotonic Stack/Queue

Read the Guide

Backtracking

Read the Guide

Arrays & Hashing

Read the Guide

Dynamic Programming (1-D & 2-D)

Read the Guide

Linked List

Read the Guide

Math & Geometry

Read the Guide