Skip to content

Commit

Permalink
Update examples/quicksort.jou
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Dec 2, 2024
1 parent 1333959 commit 0af5266
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/quicksort.jou
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@ def quicksort(arr: int*, length: int, depth: int) -> None:
arr[length / 2] = arr[length - 1]
length--

# Rearrange elements so that:
# - arr[0..end_of_small] <= pivot
# - arr[start_of_big..pivot_temp] >= pivot
# - the above two ranges cover the entire array (they may overlap)
#
# This looks like:
# Rearrange elements like this:
#
# end_of_small
# ↓
Expand Down

0 comments on commit 0af5266

Please sign in to comment.