TheAlgorithms-C/sorting
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
..
bead_sort.c
binary_insertion_sort.c
bogo_sort.c
bubble_sort_2.c
bubble_sort_recursion.c
bubble_sort.c
bucket_sort.c
CMakeLists.txt
cocktail_sort.c
comb_sort.c
counting_sort.c
cycle_sort.c
gnome_sort.c
heap_sort_2.c fix: fixed index of parent in sorting/heap_sort_2.c (#914) 2022-01-12 00:02:09 +05:30
heap_sort.c
insertion_sort_recursive.c
insertion_sort.c
merge_sort_nr.c
merge_sort.c fix: Segmentation fault in merge_sort.c (#1243) 2023-04-08 19:58:03 -06:00
multikey_quick_sort.c
odd_even_sort.c
pancake_sort.c
partition_sort.c
patience_sort.c feat: add Patience Sort algorithm (#1212) 2023-02-20 16:47:26 -06:00
pigeonhole_sort.c
quick_sort.c fix: free the allocated resources in quick sort (#923) 2021-12-22 15:03:59 -06:00
radix_sort_2.c chore: fix various spelling typos (#945) 2022-09-27 10:58:15 -05:00
radix_sort.c
random_quick_sort.c
selection_sort_recursive.c
selection_sort.c
shaker_sort.c
shell_sort2.c
shell_sort.c
stooge_sort.c