📈 Classic Sorting Algorithms #18
tpemeja
started this conversation in
Algorithm Checklist
Replies: 4 comments
|
For in-place quick sort, can take random pivot, but it at the end, setting index i to swap back the pivot, compare every number with pivot and if lower swap with value in index and increase index. By increasing it we assure that the index a value equal or higher than the pivot so we can swap |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Summary
Patterns
Choose
Details
✅ Classic algorithms (arrays)
Summary (Key points):
Details
Case 1: Quick Sort — Sort an Array
Case 2: Merge Sort — Sort List
Case 3: Heap Sort — Kth Largest Element in an Array
Case 4: Insertion Sort — Insertion Sort List
Case 5: Selection Sort
Case 6: Shell Sort
Notes and tips:
All reactions