hello-algo/codes/c
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
..
chapter_array_and_linkedlist Several improvements (#1002) 2023-12-24 10:37:25 +08:00
chapter_backtracking Some improvements (#1073) 2024-02-07 22:21:18 +08:00
chapter_computational_complexity fix: Use int instead of float for the example code of log time complexity (#1164) 2024-03-23 02:17:48 +08:00
chapter_divide_and_conquer feat: Revised the book (#978) 2023-12-02 06:21:34 +08:00
chapter_dynamic_programming fix(C): fix the array initialization in coin_change.c (#1277) 2024-04-14 17:30:21 +08:00
chapter_graph Update the book based on the revised second edition (#1014) 2023-12-28 18:06:09 +08:00
chapter_greedy Update the book based on the revised second edition (#1014) 2023-12-28 18:06:09 +08:00
chapter_hashing fix(c): Fix malloc allocation of secondary pointers can lead to dump issues (#1367) 2024-05-18 18:17:33 +08:00
chapter_heap Improve the consistency between code and comments in Kotlin (#1268) 2024-04-13 20:09:39 +08:00
chapter_searching fix(lang: c, chapters: searching, sorting): Some serious errors (#1531) 2024-11-10 02:00:53 +08:00
chapter_sorting fix(lang: c, chapters: searching, sorting): Some serious errors (#1531) 2024-11-10 02:00:53 +08:00
chapter_stack_and_queue Bug fixes and improvements (#1380) 2024-05-31 16:39:06 +08:00
chapter_tree fix some bugs in c codes (#1089) 2024-02-23 01:34:49 +08:00
utils fix(C): Update common.h (#1278) 2024-04-15 14:54:28 +08:00
.gitignore Format C, C++, C#, Go, Java, Python, Rust code. 2023-09-02 23:54:38 +08:00
CMakeLists.txt refactor: Re-implement hanota.c (#885) 2023-10-27 23:41:58 +08:00