GoalScope — quick_sort (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def quick_sort(arr):↵
"""Sorts an array using the quick sort algorithm."""↵
if len(arr) <= 1:↵
return arr↵
pivot = arr[len(arr) // 2]↵
left = [x for x in arr if x < pivot]↵
middle = [x for x in arr if x == pivot]↵
right = [x for x in arr if x > pivot]↵
return quick_sort(left) + middle + quick_sort(right)↵
</code>