Pongsakorn TIPPAYASOMDECH
2698ad2d13
fix: Segmentation fault in merge_sort.c
( #1243 )
...
* fix segmentation fault
* add a comments
* add print error message when can't malloc and exit program
* Update sorting/merge_sort.c
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
* Update sorting/merge_sort.c
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
---------
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
2023-04-08 19:58:03 -06:00
CascadingCascade
5bf2c42bff
feat: add Patience Sort algorithm ( #1212 )
...
* updating DIRECTORY.md
* updating DIRECTORY.md
* feat: Add Patience Sort
https://en.wikipedia.org/wiki/Patience_sorting
* updating DIRECTORY.md
* Update sorting/patience_sort.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/patience_sort.c
Co-authored-by: David Leal <halfpacho@gmail.com>
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-02-20 16:47:26 -06:00
Shuangchi He
889931acc8
chore: fix various spelling typos ( #945 )
2022-09-27 10:58:15 -05:00
Dhruv Pasricha
f851fbbe2f
fix: fixed index of parent in sorting/heap_sort_2.c ( #914 )
...
* fixed index of parent
* fixed spacing to pass autochecks
* Empty commit to test the CI
Co-authored-by: Panquesito7 <halfpacho@gmail.com>
2022-01-12 00:02:09 +05:30
KuhakuPixel
ef9878627d
fix: free the allocated resources in quick sort ( #923 )
2021-12-22 15:03:59 -06:00
Navid Salehi
934f55f179
fix: merge sort bug ( #921 )
...
Merge sort does not work properly. To reproduce the bug input 6, 5, 4, 3, 2, 1 the output would be 2, 3, 1, 4, 5, 6.
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-12-02 12:55:40 -06:00
Edwin B. Ajong
16d115d9fb
feat: Odd Even Sorting Algorithm ( #855 )
...
* Odd Even Sorting Algorithm
* added Odd Even Sort algorithm
* Odd Even sort algorithm
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* Update odd_even_sort.c
* update Odd Even sort
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/odd_even_sort.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/odd_even_sort.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update odd_even_sort.c
* Apply suggestions from code review
* Update sorting/odd_even_sort.c
Co-authored-by: ERR ! <75872316+amino19@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: ERR ! <75872316+amino19@users.noreply.github.com>
2021-09-10 16:12:05 -05:00
DhruvPasricha
e0c6f6e403
feat: created heap_sort_2.c ( #809 )
...
* feat: created heap_sort_2.c
* Update sorting/heap_sort_2.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/heap_sort_2.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/heap_sort_2.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/heap_sort_2.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/heap_sort_2.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/heap_sort_2.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* added deatiled description of the algorithm
* Update sorting/heap_sort_2.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/heap_sort_2.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-03-12 10:53:06 +05:30
DhruvPasricha
c2268d2e8f
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-03-02 01:08:40 +05:30
DhruvPasricha
684b4bc002
Update selection_sort_recursive.c
2021-03-01 22:06:40 +05:30
DhruvPasricha
979b1e3ba7
Update sorting/selection_sort_recursive.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-03-01 10:16:43 +05:30
David Leal
3681b53128
fix: Apply suggestions from code review
2021-02-28 15:41:58 -06:00
David Leal
d4e844e993
fix: Apply suggestions from code review
2021-02-28 15:41:39 -06:00
DhruvPasricha
3ceeecfab9
Update sorting/selection_sort_recursive.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-28 23:55:33 +05:30
DhruvPasricha
9a1d26e22a
Update sorting/selection_sort_recursive.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-27 13:10:20 +05:30
DhruvPasricha
013b586021
Update sorting/selection_sort_recursive.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-26 11:17:06 +05:30
DhruvPasricha
8947878624
Update sorting/selection_sort_recursive.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-26 10:59:55 +05:30
DhruvPasricha
a4b83a4151
used uint8_t instead of int
2021-02-25 17:48:28 +05:30
DhruvPasricha
c315db948a
added a one-line comment to tell what the library/header is for
2021-02-25 17:31:15 +05:30
David Leal
ad8ab32572
Update sorting/selection_sort_recursive.c
2021-02-24 13:17:18 -06:00
David Leal
1e44e27a99
Update sorting/selection_sort_recursive.c
2021-02-24 13:16:56 -06:00
David Leal
50cb5835a1
Update sorting/selection_sort_recursive.c
2021-02-24 13:16:47 -06:00
DhruvPasricha
60a07e6346
Update sorting/selection_sort_recursive.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-25 00:45:17 +05:30
DhruvPasricha
72e2c43f91
Update sorting/selection_sort_recursive.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-25 00:37:02 +05:30
DhruvPasricha
a0d02ed307
Update sorting/selection_sort_recursive.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-25 00:36:51 +05:30
DhruvPasricha
30b43869d4
Update sorting/selection_sort_recursive.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-25 00:36:39 +05:30
DhruvPasricha
d957dacec5
Update selection_sort_recursive.c
2021-02-25 00:12:15 +05:30
DhruvPasricha
1c777cbe99
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-25 00:02:34 +05:30
DhruvPasricha
7b23edbfd6
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-25 00:00:52 +05:30
DhruvPasricha
08cf618094
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-25 00:00:41 +05:30
DhruvPasricha
6c874bd7cd
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:58:06 +05:30
DhruvPasricha
f8c9ea04f9
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:57:23 +05:30
DhruvPasricha
63aded1ecc
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:56:53 +05:30
DhruvPasricha
33f9f85122
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:55:01 +05:30
DhruvPasricha
18a9974a0c
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:54:53 +05:30
DhruvPasricha
f894ff2ac3
Update sorting/selection_sort_recursive.c
...
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:54:42 +05:30
DhruvPasricha
98a1b14242
added selection_sort_recursive.c
2021-02-24 13:54:57 +05:30
Gabriel Fioravante
97dfc06875
Update sorting/bubble_sort_2.c
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-17 22:46:57 -05:00
northernSage
6c6879fe52
remove unused headers and add comments
2021-02-18 00:44:48 -03:00
Gabriel Fioravante
679b30b725
use 0 instead of EXIT_SUCCESS
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-17 22:39:20 -05:00
Gabriel Fioravante
cf95c1e27a
Apply suggestions from code review
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-17 22:29:37 -05:00
northernSage
de09c966b3
add header comment
2021-02-17 07:17:31 -03:00
northernSage
366724b585
update old main function
2021-02-17 07:15:47 -03:00
northernSage
9ba58f4571
add separate test function
2021-02-17 07:14:34 -03:00
northernSage
3b647a617a
move bubblesort implementation to separate function
2021-02-17 07:13:29 -03:00
northernSage
6b0f57d372
use stdbool.h instead of manually defined macros
2021-02-17 07:11:11 -03:00
northernSage
e2add348d9
apply snake case
2021-02-17 07:08:51 -03:00
vinayak
bad50992fd
insertion_sort_recursive ( #647 )
...
* insertion_sort_recursive
* feat: add insertion sort recursive algorithm
* Update sorting/insertion_sort_recursive.c
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* Update sorting/insertion_sort_recursive.c
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* Update insertion_sort_recursive.c
* Update sorting/insertion_sort_recursive.c
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* Update sorting/insertion_sort_recursive.c
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* Update sorting/insertion_sort_recursive.c
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-10-16 09:01:45 -04:00
David Leal
3052511c14
fix: LGTM warning/alert ( #601 )
...
* fix: LGTM warning
* fix: change requested
2020-09-09 18:54:16 -04:00
shellhub
10d006c3b1
* fix docs
...
* fix insertion sort and selection sort
2020-07-31 20:44:55 +08:00