hello-algo/codes/c/chapter_sorting
Fleey 6a74972080
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
..
2023-12-18 22:52:00 +08:00
2024-04-14 20:46:20 +08:00
2023-12-02 06:21:34 +08:00
2024-04-14 20:46:20 +08:00