Skip to content

Instantly share code, notes, and snippets.

Avatar

Marlon Etheredge ofx

  • The Netherlands
View GitHub Profile
View Subset Sum
#include <math.h>
#include <stdio.h>
int S[] = {-7, -3, -2, 5, 8};
int main()
{
unsigned int i, n, a, j, nn, ui;
n = pow(2, sizeof(S) / sizeof(int)) - 1;
ui = sizeof(S) / sizeof(int);