Commit Graph

10 Commits

Author SHA1 Message Date
nikhil kala
b390775971
Update Bubble Sort.cpp 2020-04-24 13:48:19 +05:30
nikhil kala
4f5f1f4225
Update Bubble Sort.cpp 2020-04-24 13:47:38 +05:30
nikhil kala
5f791fe619
Merge branch 'master' into patch-1 2020-04-24 13:44:41 +05:30
nikhil kala
ae871b649b
Rename Sorting/Bubble Sort.cpp to sorting/Bubble Sort.cpp 2020-04-24 13:38:07 +05:30
stepfencurryxiao
f659bcc9fc Don't use bits/stdc++.h 2020-04-18 10:43:43 +08:00
Perukii
6655038105
feat : added library sort (#710)
* added library_sort.cpp

* added library_sort.cpp

* format

* format

* modified the code

* feat : added library sort
2020-03-07 08:20:08 +01:00
Eric Curtin
59d5dcca1d heapsort implementation started at index 1
It is wasteful of the first element of the array, so start at 0.
Also std:swap was re-implemented just use swap available in C++ library
instead.
2020-01-06 11:33:08 +00:00
Eric Curtin
98143d9e36 variable x is unused (#698)
* variable x is unused

* Use std::endl and a blank line between functions

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-01-04 09:33:56 +01:00
Eric Curtin
e50d0ffffe Use getchar over getch (#681)
* Use getchar over getch

getch in Windows specific. Now the code will compile
and work on other platforms like Linux and macOS.

* Update and rename Heap Sort .cpp to heap_sort .cpp

* cpplint fixes

* Rename heap_sort .cpp to heap_sort.cpp
2019-12-16 13:21:16 +01:00
Christian Clauss
f8da1b0685
rename Sorting -> sorting (#653) 2019-11-28 13:32:03 +01:00