Commit Graph

65 Commits

Author SHA1 Message Date
Ayaan Khan
c1764bd197 Added breif comments on functions 2020-05-27 18:43:57 +05:30
Ayaan Khan
69f9210c17 Added documentation 2020-05-27 18:17:28 +05:30
Ayaan Khan
ee3547fafc Correction : Fixed Array Overflow 2020-05-27 15:41:15 +05:30
mishraabhinn
eaf2ebd544
SwapSort.cpp (#754)
* Create Swap Sort(Minimum)

* Update Swap Sort(Minimum)

* Update Swap Sort(Minimum)

* Rename Swap Sort(Minimum) to SwapSort.cpp

* Update SwapSort.cpp

* Update SwapSort.cpp

* Update SwapSort.cpp

* Rename SwapSort.cpp to swap_sort.cpp

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-19 20:56:59 +02:00
Musab Albirair
49871c7f2f
Add file for non-recursive merge sort (#730)
* Add file for non-recursive merge sort

Add the source file (sorting/non_recursive_merge_sort.cpp) which defines the function template "non_recursive_merge_sort" in different forms, along with a helper function merge. Moreover, it creates 2 additional files, doxy.txt for Doxygen configuration, and a makefile to automate building, testing and cleaning.

* Add file for non-recursive merge sort

Add the source file (sorting/non_recursive_merge_sort.cpp) which defines the function template "non_recursive_merge_sort" in different forms, along with a helper function merge. Moreover, it creates 2 additional files, doxy.txt for Doxygen configuration, and a makefile to automate building, testing and cleaning.

* GitHub Action to cd sorting ; make doc ; make doc

* updating DIRECTORY.md

* Fix indentation error

* uses: mattnotmitt/doxygen-action@master

* doxyfile-path: 'sorting/'

* doxyfile-path: 'sorting/doxy.txt'

* working-directory: '.'

* Update sorting_non_recursive_merge_sort.yml

* Update sorting_non_recursive_merge_sort.yml

* Update sorting_non_recursive_merge_sort.yml

* Publish HTML to GitHub Pages

* Update sorting_non_recursive_merge_sort.yml

Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-04-25 17:16:42 +02:00
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