LeetCode MEDIUM 75 Sort Colors Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Sort Colors
- Main tags:
Array,Two Pointers,Sorting
What the problem is really asking
The input array contains only 0, 1, and 2. Those values represent three categories, and the goal is to reorder the array in place so all 0s come first, then all 1s, then all 2s.