You are viewing a single comment's thread. Return to all comments →
what the below statement does in the code?
if(jj != 0) i--;
jj = (jj < 3) ? jj+1 : 0; // set 0 if jj(collumn pointer) set in one position which allows calculate an hourglass
if(sum > maxsum) maxsum = sum;
if(jj != 0) i--; // if jj is in a position where a hourglass can be calculated, the line pointer(i) continue in the same line
To run loop for same value of i with different values for j untill j maximum limit is reached