hello-algo/codes/c/chapter_greedy
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 feat: add C code in chapter_greedy (#755) 2023-09-21 07:52:11 -05:00
coin_change_greedy.c 增加C的贪心算法代码 (#726) 2023-09-09 16:28:44 +08:00
fractional_knapsack.c feat: add C code in chapter_greedy (#755) 2023-09-21 07:52:11 -05:00
max_capacity.c feat: add C code in chapter_greedy (#755) 2023-09-21 07:52:11 -05:00
max_product_cutting.c feat: add C code in chapter_greedy (#755) 2023-09-21 07:52:11 -05:00