Skip to content

Commit

Permalink
Update README.markdown
Browse files Browse the repository at this point in the history
Update document for Hoare's partitioning scheme
  • Loading branch information
cuongnguyenta authored Jun 9, 2018
1 parent 78af3a3 commit 66db524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Quicksort/README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func partitionHoare<T: Comparable>(inout a: [T], low: Int, high: Int) -> Int {
repeat { i += 1 } while a[i] < pivot

if i < j {
swap(&a[i], &a[j])
a.swapAt(i, j)
} else {
return j
}
Expand Down

0 comments on commit 66db524

Please sign in to comment.