Skip to content

Instantly share code, notes, and snippets.

@ShellBin
Created September 17, 2018 14:16
Show Gist options
  • Save ShellBin/2b566a1ebfa591a48cff7d7b09d8d85d to your computer and use it in GitHub Desktop.
Save ShellBin/2b566a1ebfa591a48cff7d7b09d8d85d to your computer and use it in GitHub Desktop.
reverseCol
public static void reverseCol(int value [][]) {
for (int i = 0; i < value.length; i++) {
for (int j = i; j < value[i].length; j++) {
int k = value[i][j] ;
value[i][j] = value[j][i] ;
value[j][i] = k ;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment