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+ =======
22Sorting
3- ============================
3+ =======
44
55Just sort the way you want.
66
77-----------------
88Quick Start Guide
99-----------------
1010
11- ::
11+ .. code-block :: python
1212
1313 from pygorithm.sorting import bubble_sort
1414
@@ -20,6 +20,31 @@ Quick Start Guide
2020 # to sort the list
2121 sorted_list = bubble_sort.sort(myList)
2222
23- ---------------
23+ --------
2424Features
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