Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void cycle(int maxJump, int array[MAXCELL], int* counter, int cell, int memory[MAXHEIGHT][MAXCELL], int level) {
- if (level < cell) {
- level += 1;
- for (int i = 0; i <= maxJump; i++) {
- array[level] = i;
- cycle(maxJump, array, counter, cell, memory, level);
- }
- } else {
- if (arraySum(array, cell) == cell) {
- int check = baseScan(array, memory, counter);
- if (!check) {
- arrayPrint(memory, cell, *counter);
- printf("\n");
- counter += 1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement