Skip to content
Open
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
2 changes: 1 addition & 1 deletion c/quick_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int partition (int arr[], int low, int high)
int pivot = arr[high]; // pivot
int i = (low - 1); // Index of smaller element

for (int j = low; j <= high- 1; j++)
for (int j = low; j < high; j++)
{
// If current element is smaller than or
// equal to pivot
Expand Down