Partition is the 핵심 (core) building block of Quick Sort. Using Lomuto (textbook), we keep the pivot at r, scan with j, and maintain a “≤ pivot” region using i (boundary index).