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