15 Commits

Author SHA1 Message Date
Ayaan Khan
f1ab19bb33 fix: minor docs issue 2020-06-25 03:39:12 +05:30
Ayaan Khan
7f40775055 fix docs 2020-06-24 00:36:56 +05:30
Ayaan Khan
f0ab9a0d38 fixed line spacing in tests 2020-06-24 00:36:56 +05:30
github-actions
a56e54ca15 formatting source-code for 7c8617fa46d41481c68ae2ae9d4f6a89ca42a4ff 2020-06-24 00:36:56 +05:30
Ayaan Khan
555f4fb98f fixed docs 2020-06-24 00:36:56 +05:30
github-actions
6d88c992ed formatting source-code for ced5dcd6c4db53ece27d22ecd1dd1c1fcce6afb0 2020-06-24 00:36:56 +05:30
Ayaan Khan
2a41d916b0 Added template and test cases 2020-06-24 00:36:56 +05:30
Ayaan Khan
86bd671c66 switched to normal functions from lambda 2020-06-24 00:36:56 +05:30
github-actions
11728ee231 formatting source-code for e464ddac3688834ce46c59bada5ad3fddbfa2254 2020-06-24 00:36:22 +05:30
Ayaan Khan
38db7fdec0 Bug Fix heap sort [Fresh Implementation] 2020-06-24 00:35:41 +05:30
Ayaan Khan
5c77f1ebe0 Bug Fix heap sort [Fresh Implementation] 2020-06-24 00:35:41 +05:30
Ayaan Khan
de70c5d864
[Bug Fix] of sorting/heapsort.cpp (#873)
* formatting source-code for 72c365dcd34d9776fac3e2b58b41891b3619b02e

* Fixed Bug [munmap_chunck() core dumped]

* formatting source-code for b06bbf4dc6c46a3284d7852bb570438384eef4ef

* fixed line spacing

* fixed line spacing

* fixed documentation

* closed the paranthesis of line 3

* formatting source-code for 8233eda8894f46785f288e72c639d201852f6096

* Bug Fix heap sort [Fresh Implementation]

* formatting source-code for e464ddac3688834ce46c59bada5ad3fddbfa2254

* Bug Fix heap sort [Fresh Implementation]

* formatting source-code for 803981c831b36bf940d3fa2a901340cb0029717b

* switched to normal functions from lambda

* formatting source-code for ced5dcd6c4db53ece27d22ecd1dd1c1fcce6afb0

* Added template and test cases

* formatting source-code for 7c8617fa46d41481c68ae2ae9d4f6a89ca42a4ff

* fixed docs

* fixed line spacing in tests

* fix docs

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-06-21 21:28:00 +05:30
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