Skip to content

Commit 454cb10

Browse files
authored
converting the file to markdown
1 parent 341b64b commit 454cb10

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Quicksort
1+
# Quicksort
22

33
A quicksort is a quicker method of sorting, and there are four different ways of implementing it. The example given uses a pivot point.
44

@@ -9,18 +9,31 @@ The pivot point is then moved to the middle of either the smaller or larger item
99

1010
This continues over and over again until everything is in the proper place.
1111

12-
Usage
12+
## Install
13+
14+
```
15+
pip install allalgorithms
16+
```
17+
18+
## Usage
19+
20+
```py
1321
from allalgorithms.sorting import quicksort
1422

1523
arr = [77, 2, 10, -2, 1, 7]
1624

1725
print(quicksort(arr))
1826
# -> [-2, 1, 2, 7, 10, 77]
27+
```
1928

20-
API
29+
## API
2130

31+
```
2232
quicksort(array)
23-
Returns a sorted array
33+
```
34+
35+
> Returns a sorted array
36+
37+
##### Params:
2438

25-
Params:
26-
array: Unsorted Array
39+
- `array`: Sorted Array

0 commit comments

Comments
 (0)