hello-algo/codes/c/utils
xianii d225b416cf
feat: add C code in chapter_greedy (#755)
* add fractional_knapsack.c

* update CMakeLists

* add c code in chapter_greedy

* fix header format

* format code by clang-format

* remove extra comments

* replace ternary operator to MACRO

* parameters form adjustment

* Update fractional_knapsack.c

* Update max_capacity.c

* Update max_product_cutting.c

* add comments for consistency with cpp ver

* move MIN&MAX macro to source file

* typo fix

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-09-21 07:52:11 -05:00
..
CMakeLists.txt Rename the common modules in Java, C++ and C. 2023-04-24 04:11:18 +08:00
common.h feat: add C code in chapter_greedy (#755) 2023-09-21 07:52:11 -05:00
common_test.c Rename the common modules in Java, C++ and C. 2023-04-24 04:11:18 +08:00
list_node.h Polish the chapter of array and linkedlist 2023-08-17 05:13:19 +08:00
print_util.h feat: Add C codes for bucket sort, heap sort, selection sort, binary search edge (#525) 2023-06-02 02:51:35 +08:00
tree_node.h Fix the problem in binary_tree_bfs.c and the problem that the memory is not released. (#487) 2023-05-09 00:01:23 +08:00
uthash.h Rename the common modules in Java, C++ and C. 2023-04-24 04:11:18 +08:00
vector.h Add array_binary_tree.c and update push_back and pop_back in vector.h (#664) 2023-08-03 14:48:10 +08:00