hello-algo/codes/c
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
..
chapter_array_and_linkedlist Fix unreleased memory error (#769) 2023-09-19 23:53:45 +08:00
chapter_backtracking fix preorder_traversal_iii_compact code 2023-09-09 00:51:00 +08:00
chapter_computational_complexity fine tune 2023-09-17 01:13:15 +08:00
chapter_graph Format C, C++, C#, Go, Java, Python, Rust code. 2023-09-02 23:54:38 +08:00
chapter_greedy feat: add C code in chapter_greedy (#755) 2023-09-21 07:52:11 -05:00
chapter_hashing Add interation.c recursion.c simple_hash.c binary_search_edge.c binary_search_insertion.c in C codes. (#731) 2023-09-09 19:16:15 +08:00
chapter_heap Fix my_heap.c build error (#732) 2023-09-09 16:41:24 +08:00
chapter_searching Add interation.c recursion.c simple_hash.c binary_search_edge.c binary_search_insertion.c in C codes. (#731) 2023-09-09 19:16:15 +08:00
chapter_sorting Format C, C++, C#, Go, Java, Python, Rust code. 2023-09-02 23:54:38 +08:00
chapter_stack_and_queue Fix linkedlist queue print error (#770) 2023-09-19 23:53:01 +08:00
chapter_tree fine tune 2023-09-17 01:13:15 +08:00
utils feat: add C code in chapter_greedy (#755) 2023-09-21 07:52:11 -05:00
.gitignore Format C, C++, C#, Go, Java, Python, Rust code. 2023-09-02 23:54:38 +08:00
CMakeLists.txt 增加C的贪心算法代码 (#726) 2023-09-09 16:28:44 +08:00