Given an array with values 0, 1, 2 (representing red, white, blue), sort them in-place without using sort().
Input: nums=[2,0,2,1,1,0] Output: [0,0,1,1,2,2]
Unlock hints progressively — start gentle, go deeper only if needed.
Level 1: Gentle Nudge
A subtle direction
Level 2: Approach
The algorithm to use
Level 3: Detailed
Step-by-step guidance
to save progress and use AI features