hello-algo/codes/c/chapter_sorting
Fleey 6a74972080
Some checks failed
C / build (Release, clang, clang++, ubuntu-latest) (push) Failing after 31s
C / build (Release, gcc, g++, ubuntu-latest) (push) Failing after 12s
C / build (Release, cl, cl, windows-latest) (push) Has been cancelled
fix(lang: c, chapters: searching, sorting): Some serious errors (#1531)
* fix: correct hash table insertion

* Use a pointer to a pointer instead of a single pointer in the insert function, ensuring proper updates to the hash table
* Bug fixes: This fixes issues with empty results.

* fix: correct issues in radix sort

* Replaced loop-based array copy with memcpy to ensure efficient memory copying in countingSortDigit
* Fixed a bug in radixSort where the maximum value search loop skipped the last element
* Bug fix: Ensures all elements are checked when determining the maximum value in the array

* perf: improve memory management by adding explicit memory release

* revert: Revert to using the old loop override array method and drop specific api's like memcpy.
2024-11-10 02:00:53 +08:00
..
bubble_sort.c Fix bubble_sort.c 2023-12-18 22:52:00 +08:00
bucket_sort.c Prepare 1.1.0 release (#1274) 2024-04-14 20:46:20 +08:00
CMakeLists.txt feat: Add C codes for bucket sort, heap sort, selection sort, binary search edge (#525) 2023-06-02 02:51:35 +08:00
counting_sort.c fix(lang: c, chapters: searching, sorting): Some serious errors (#1531) 2024-11-10 02:00:53 +08:00
heap_sort.c feat: Revised the book (#978) 2023-12-02 06:21:34 +08:00
insertion_sort.c Bug fixes and improvements (#1133) 2024-03-14 20:01:16 +08:00
merge_sort.c [Rust] Normalize mid calculation in case overflow (#1363) 2024-05-18 18:19:19 +08:00
quick_sort.c Prepare 1.1.0 release (#1274) 2024-04-14 20:46:20 +08:00
radix_sort.c fix(lang: c, chapters: searching, sorting): Some serious errors (#1531) 2024-11-10 02:00:53 +08:00
selection_sort.c A few improvements to the C code. 2023-10-27 01:13:36 +08:00