vimwiki/tech/quicksort.wiki

9 lines
206 B
Plaintext
Raw Normal View History

2022-04-04 19:45:01 +00:00
= Quicksort =
Quicksort is a sorting algorithm that runs in `O(n log n)` time.
== Algorithm ==
2022-04-04 20:00:01 +00:00
For some array `arr`, chose come pivot value in `arr`. It does not matter how
2022-04-05 17:30:01 +00:00
this pivot, `pvt` is chosen.