Complete the code to initialize the low pointer to start the partition.
low := [1]The low pointer starts at index 0 to track the boundary of elements less than the pivot.
Complete the code to swap elements at indices i and low.
arr[i], arr[[1]] = arr[[1]], arr[i]
We swap the current element at i with the element at low to move smaller elements to the front.
Fix the error in the loop condition to correctly iterate over the array.
for i := 0; i [1] high; {
The loop should run while i is less than high to process all elements before the high pointer.
Fill both blanks to correctly update pointers after swapping with high.
arr[i], arr[[1]] = arr[[1]], arr[i] high[2]
After swapping with high, decrement high to shrink the upper partition.
Fill all three blanks to complete the partition loop with correct pointer updates.
for i := 0; i [1] high; { if arr[i] < pivot { arr[i], arr[[2]] = arr[[2]], arr[i] [3]++ i++ } else if arr[i] > pivot { arr[i], arr[high] = arr[high], arr[i] high-- } else { i++ } }
The loop runs while i < high. Swap with low pointer and increment low after swap.
