Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/pseudocode.json
Original file line number Diff line number Diff line change
Expand Up @@ -1514,10 +1514,10 @@
[" swap array[left], array[pivotIdx]"],
[" i ← left + 1, j ← right - 1"],
[" while i <= j:"],
[" while", " ", "i <= j", " and ", "array[i] <= pivot", ":"],
[" while i <= j and array[i] <= pivot"],
[" i ← i + 1"],
[" end while"],
[" while", " ", "i <= j", " and ", "array[j] >= pivot", ":"],
[" while i <= j and array[j] >= pivot"],
[" j ← j - 1"],
[" end while"],
[" if i <= j:"],
Expand All @@ -1536,11 +1536,11 @@
[" pivot is the value at pivotIdx"],
[" swap array[left] with the pivot"],
[" i points to left + 1, j points to right - 1"],
[" while (j has not crossed i):"],
[" while", " (", "j has not crossed i", " and ", "array[i] <= pivot", "):"],
[" while j has not crossed i:"],
[" while j has not crossed i and array[i] <= pivot:"],
[" increment i"],
[" end while"],
[" while", " (", "j has not crossed i", " and ", "array[j] >= pivot", "):"],
[" while j has not crossed i and array[j] >= pivot:"],
[" decrement j"],
[" end while"],
[" if j and i have not crossed:"],
Expand All @@ -1564,10 +1564,10 @@
[" swap array[left], array[pivotIdx]"],
[" i ← left + 1, j ← right"],
[" while i <= j:"],
[" while", " ", "i <= j", " and ", "array[i] <= pivot", ":"],
[" while i <= j and array[i] <= pivot:"],
[" i ← i + 1"],
[" end while"],
[" while", " ", "i <= j", " and ", "array[j] >= pivot", ":"],
[" while j has not crossed i and array[j] >= pivot:"],
[" j ← j - 1"],
[" end while"],
[" if i <= j:"],
Expand All @@ -1592,10 +1592,10 @@
[" swap array[left] with the pivot"],
[" i points to left + 1, j points to right"],
[" while (j has not crossed i):"],
[" while", " (", "j has not crossed i", " and ", "array[i] <= pivot", "):"],
[" while j has not crossed i and array[i] <= pivot:"],
[" increment i"],
[" end while"],
[" while", " (", "j has not crossed i", " and ", "array[j] >= pivot", "):"],
[" while j has not crossed i and array[j] >= pivot:"],
[" decrement j"],
[" end while"],
[" if j and i have not crossed:"],
Expand Down