vault backup: 2022-07-07 21:24:34

This commit is contained in:
juan 2022-07-07 21:24:34 +08:00
parent 1c2d52ccd1
commit 04a5dcbb3f
43 changed files with 6 additions and 4 deletions

View file

@ -8,7 +8,7 @@
{ {
"type": "file", "type": "file",
"title": "CS-index", "title": "CS-index",
"path": "CS notes/CS-index.md" "path": "OJ notes/OJ-index.md"
}, },
{ {
"type": "file", "type": "file",

1
CTF notes/CTF-index.md Normal file
View file

@ -0,0 +1 @@
# CTF-index

View file

@ -13,7 +13,8 @@ ___
## Table of contents ## Table of contents
### Computer science notes ### Computer science notes
- [[CS-index]] - [[OJ-index]]
- [[CTF-index]]
### Misc ### Misc
- [[Wiki-Index]] - [[Wiki-Index]]

View file

@ -83,7 +83,7 @@ public:
### Thoughts ### Thoughts
This is a [[Kadane's algorithm]] problem, and the philosophy behind it id divide and conquer. This is a [[Kadane's Algorithm]] problem, and the philosophy behind it id divide and conquer.
local_max is the max accumulated number we've found, and global_max is the max local_max we've found. local_max is the max accumulated number we've found, and global_max is the max local_max we've found.
```cpp ```cpp
local_max = max(nums[i] + local_max, nums[i]) local_max = max(nums[i] + local_max, nums[i])

View file

@ -5,4 +5,4 @@
5. ```matrix[i][j]``` in scanning a 2d array. 5. ```matrix[i][j]``` in scanning a 2d array.
6. figure out ```matrix[i][j]``` and ```matrix[i][n-1]``` 6. figure out ```matrix[i][j]``` and ```matrix[i][n-1]```
More can be found in [[CS-index]] More can be found in [[OJ-index]]