You are viewing a single comment's thread. Return to all comments →
int x = 0; int y = 0; int index = a.length-1; for(int i=0; i } return Math.abs(x-y);
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 →
int x = 0; int y = 0; int index = a.length-1; for(int i=0; i } return Math.abs(x-y);