mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-07-17 12:02:22 +08:00
feat: add Bogo Sort (#952)
* Added Bogo Sort * Changed code according to guidelines * Added Comments and example * Improved code quality * Added range based loop and included cassert * Changed Vectors to Array * Added const to vector arg and now returning sorted array * Changed vector to array and changed description format * Added namespace sorting, Function description and tests * Update sorting/Bogo_Sort.cpp Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com> * Replaced Shuffle with std::random_shuffle * Renamed filename to smallercase, Added shuffle for ref and updated bracket styling * Added missing ')' * updating DIRECTORY.md * Added spaces in single line comments * Added Spaces * Update sorting/bogo_sort.cpp Co-authored-by: David Leal <halfpacho@gmail.com> Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -215,6 +215,7 @@
|
||||
## Sorting
|
||||
* [Bead Sort](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/sorting/bead_sort.cpp)
|
||||
* [Bitonic Sort](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/sorting/bitonic_sort.cpp)
|
||||
* [Bogo Sort](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/sorting/bogo_sort.cpp)
|
||||
* [Bubble Sort](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/sorting/bubble_sort.cpp)
|
||||
* [Bucket Sort](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/sorting/bucket_sort.cpp)
|
||||
* [Cocktail Selection Sort](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/sorting/cocktail_selection_sort.cpp)
|
||||
|
||||
Reference in New Issue
Block a user