Subset sum problem: Difference between revisions

Content deleted Content added
→‎{{header|C}}: to should only be incremented if sums is incremented
→‎{{header|C}}: get rid of nonstandard header
Line 80:
<lang c>#include <stdio.h>
#include <stdlib.h>
#include <valueslimits.h>
#include <string.h>
 
#define INTBITS (sizeof(int) * CHAR_BIT)
#define MAX_WEIGHT 1024
typedef struct { void* data; int weight; } item;