notes/Wiki/Notes for CS.md

9 lines
340 B
Markdown
Raw Normal View History

2022-09-03 15:41:36 +08:00
1. use `int arr[][Columns]` for 2-d function declaration
2. `#pragma gcc optimize("Ofast, inline")` to increase speed
2022-06-14 23:33:35 +08:00
3. use parens to close bitwise operations and %
4. remember the scope in loops (int i) (int j)
2022-09-03 15:41:36 +08:00
5. `matrix[i][j]` in scanning a 2d array.
6. figure out `matrix[i][j]` and `matrix[i][n-1]`
2022-06-14 23:33:35 +08:00
2022-09-03 15:41:36 +08:00
More can be found in [[OJ-index]]