File tree Expand file tree Collapse file tree 1 file changed +30
-5
lines changed Expand file tree Collapse file tree 1 file changed +30
-5
lines changed Original file line number Diff line number Diff line change 1
- ============================
1
+ =======
2
2
Sorting
3
- ============================
3
+ =======
4
4
5
5
Just sort the way you want.
6
6
7
7
-----------------
8
8
Quick Start Guide
9
9
-----------------
10
10
11
- ::
11
+ .. code-block :: python
12
12
13
13
from pygorithm.sorting import bubble_sort
14
14
@@ -20,6 +20,31 @@ Quick Start Guide
20
20
# to sort the list
21
21
sorted_list = bubble_sort.sort(myList)
22
22
23
- ---------------
23
+ --------
24
24
Features
25
- ---------------
25
+ --------
26
+
27
+ * Sorts available:
28
+ - Bubble Sort (bubble_sort)
29
+ - Selection Sort (selection_sort)
30
+ - Insertion Sort (insertion_sort)
31
+ - Merge Sort (merge_sort)
32
+ - Quick Sort (quick_sort)
33
+
34
+ * Get time complexities of all the sorting algorithms
35
+
36
+ .. code-block :: python
37
+
38
+ from pygorithm.sorting import bubble_sort
39
+
40
+ # for printing time complexities of bubble_sort
41
+ print (bubble_sort.time_complexities())
42
+
43
+ * Get the code used for any of the algorithm
44
+
45
+ .. code-block :: python
46
+
47
+ from pygorithm.sorting import bubble_sort
48
+
49
+ # for printing the source code of bubble_sort
50
+ print (bubble_sort.get_code())
You can’t perform that action at this time.
0 commit comments