vault backup: 2022-07-07 21:24:34
This commit is contained in:
parent
1c2d52ccd1
commit
04a5dcbb3f
2
.obsidian/starred.json
vendored
2
.obsidian/starred.json
vendored
|
@ -8,7 +8,7 @@
|
|||
{
|
||||
"type": "file",
|
||||
"title": "CS-index",
|
||||
"path": "CS notes/CS-index.md"
|
||||
"path": "OJ notes/OJ-index.md"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
|
|
1
CTF notes/CTF-index.md
Normal file
1
CTF notes/CTF-index.md
Normal file
|
@ -0,0 +1 @@
|
|||
# CTF-index
|
3
Index.md
3
Index.md
|
@ -13,7 +13,8 @@ ___
|
|||
## Table of contents
|
||||
|
||||
### Computer science notes
|
||||
- [[CS-index]]
|
||||
- [[OJ-index]]
|
||||
- [[CTF-index]]
|
||||
|
||||
### Misc
|
||||
- [[Wiki-Index]]
|
||||
|
|
|
@ -83,7 +83,7 @@ public:
|
|||
|
||||
### 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.
|
||||
```cpp
|
||||
local_max = max(nums[i] + local_max, nums[i])
|
|
@ -5,4 +5,4 @@
|
|||
5. ```matrix[i][j]``` in scanning a 2d array.
|
||||
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]]
|
Loading…
Reference in a new issue