Dynamic Programming Implementation of Box Stacking Problem
Dynamic Programming Implementation of Box Stacking Problem
#include<stdio.h>
#include<stdlib.h>
/* Representation of a box */
struct Box
{
// h --> height, w --> width, d --> depth
int h, w, d; // for simplicity of solution, always keep w <= d
};
return max;
}
return 0;
}