359 B
359 B
- use
int arr[][Columns]
for 2-d function declaration #pragma gcc optimize("Ofast, inline")
to increase speed- use parens to close bitwise operations and %
- remember the scope in loops (int i) (int j)
matrix[i][j]
in scanning a 2d array.- figure out
matrix[i][j]
andmatrix[i][n-1]
More can be found in OJ-index