You are viewing a single comment's thread. Return to all comments →
It's nothing sort of cool.
The main approach uses (i == n-j-1) in this approach he is simply taking j from the right and putting it on the left side of the ==
i == n-j-1 is as same as i + j == n-1
Seems like cookies are disabled on this browser, please enable them to open this website
Diagonal Difference
You are viewing a single comment's thread. Return to all comments →
It's nothing sort of cool.
The main approach uses (i == n-j-1) in this approach he is simply taking j from the right and putting it on the left side of the ==
i == n-j-1 is as same as i + j == n-1