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 = [1, 3, 4, 2, 2]2nums = [3, 1, 3, 4, 2]3nums = [3, 3, 3, 3, 3]3Time Complexity
Space Complexity