mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 06:07:20 +08:00 
			
		
		
		
	* 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>
		
			
				
	
	
		
			36 lines
		
	
	
		
			518 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			518 B
		
	
	
	
		
			C
		
	
	
	
	
	
/**
 | 
						|
 * File: common.h
 | 
						|
 * Created Time: 2022-12-20
 | 
						|
 * Author: MolDuM (moldum@163.com)、Reanon (793584285@qq.com)
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef C_INCLUDE_H
 | 
						|
#define C_INCLUDE_H
 | 
						|
 | 
						|
#include <assert.h>
 | 
						|
#include <stdbool.h>
 | 
						|
#include <stdio.h>
 | 
						|
#include <stdlib.h>
 | 
						|
#include <string.h>
 | 
						|
#include <time.h>
 | 
						|
#include <math.h>
 | 
						|
 | 
						|
#include "list_node.h"
 | 
						|
#include "print_util.h"
 | 
						|
#include "tree_node.h"
 | 
						|
 | 
						|
// hash table lib
 | 
						|
#include "uthash.h"
 | 
						|
 | 
						|
#include "vector.h"
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
 | 
						|
#endif // C_INCLUDE_H
 |