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 [docs] add documentation group (#556) 2020-07-04 13:59:21 -04:00
binary_insertion_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
bogo_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
bubble_sort_2.c Update sorting/bubble_sort_2.c 2021-02-17 22:46:57 -05:00
bubble_sort_recursion.c Bubble sort recursion (#574) 2020-07-21 11:07:30 -04:00
bubble_sort.c bubble sort optimization (#573) 2020-07-21 11:16:11 -04:00
bucket_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
CMakeLists.txt [enhancement] updated cmake checks (#581) 2020-07-23 10:44:18 -04:00
cocktail_sort.c formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
comb_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
counting_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
cycle_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
gnome_sort.c [Bug] gnome sort: reverted merge commit adding error (#559) 2020-07-08 08:54:58 -04:00
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 formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
insertion_sort_recursive.c insertion_sort_recursive (#647) 2020-10-16 09:01:45 -04:00
insertion_sort.c * fix docs 2020-07-31 20:44:55 +08:00
merge_sort_nr.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
merge_sort.c fix: Segmentation fault in merge_sort.c (#1243) 2023-04-08 19:58:03 -06:00
multikey_quick_sort.c fix: LGTM warning/alert (#601) 2020-09-09 18:54:16 -04:00
odd_even_sort.c feat: Odd Even Sorting Algorithm (#855) 2021-09-10 16:12:05 -05:00
pancake_sort.c formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
partition_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
patience_sort.c feat: add Patience Sort algorithm (#1212) 2023-02-20 16:47:26 -06:00
pigeonhole_sort.c formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
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 formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
random_quick_sort.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
selection_sort_recursive.c Update sorting/selection_sort_recursive.c 2021-03-02 01:08:40 +05:30
selection_sort.c * fix docs 2020-07-31 20:44:55 +08:00
shaker_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
shell_sort2.c [docs] add documentation group (#556) 2020-07-04 13:59:21 -04:00
shell_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
stooge_sort.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00