C solution without dynamic memory allocation


#1

// instead of doing all dynamic array thing you can just print the number in correct format.
// It works :stuck_out_tongue_winking_eye:
#define n A
int ** solve(int A, int *len1, int len2) {
int i,j;
for(i=1; i<=n; i++){
int c=1;
printf("[");
for(j=1; j<=i; j++){
printf("%d ", c);
c = c
(i-j)/j;
}
printf("] ");

}
*len1 = 0; *len2=0;
return NULL;

}