Skip to content

Commit 68a11ad

Browse files
initial commit
1 parent aae7242 commit 68a11ad

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • Algorithm/Sorting algorithm/quick-sort

‎Algorithm/Sorting algorithm/quick-sort/main.go‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Principle: Select a 'pivot' element and partition the array around
3+
the pivot such that elements less than the pivot are on the left,
4+
and elements greater than the pivot are on the right.
5+
6+
Logic: Recursively sort the sub-arrays before and after the pivot.
7+
*/
8+
19
package main
210

311
import "fmt"

0 commit comments

Comments
 (0)