Snippet format update
To match the starter (for the migration)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
### quickSort
|
||||
---
|
||||
title: quickSort
|
||||
tags: algorithm,recursion,beginner
|
||||
---
|
||||
|
||||
QuickSort an Array (ascending sort by default).
|
||||
|
||||
@@ -20,4 +23,4 @@ const quickSort = ([n, ...nums], desc) =>
|
||||
```js
|
||||
quickSort([4, 1, 3, 2]); // [1,2,3,4]
|
||||
quickSort([4, 1, 3, 2], true); // [4,3,2,1]
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user