Fetching algorithms...
Fetching algorithms...
Watch key transitions, pointers, and variables update step-by-step.
Read clean, documented implementations across multiple patterns.
Sketch diagrams on an infinite canvas and draft notes directly inline.
nums = [2, 2, 1]1nums = [4, 1, 2, 1, 2]4nums = [1]1Time Complexity
Space Complexity