CODE DRILL 1 · RUN ONLY
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Complete the Lomuto partition function for [7, 2, 1, 6, 8, 5, 3, 4]. Print the partitioned array and the returned pivot index.
OUTPUT
Sample[2, 1, 3, 4, 8, 5, 7, 6] Pivot index: 3
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.