斜向遍历二维数组
斜向遍历二维数组的代码框架
在动态规划中有时会需要斜着遍历二维数组,在这里用c++简单记录一下遍历的代码:
This message, related to the development of the theme, only displays on the
localhost
homepage to notify you of any important theme changes.
With this version, the theme has fully implemented static search using
lunr.js
. That being said, a few modifications were necessary to implement this
feature.
To utilize this, or future version of Hugo Future Imperfect Slim, please make the following changes:
config.toml
before [params]
:...
disableLanguages = [""]
[outputs]
home = ["html", "json"]
[params]
...
Remove the underscore from all about
and contact
page file names:
_index.md --> index.md
Add layout = "about"
or layout = "contact"
to all of the files you just
just adjusted the file names for.
While I realize this is inconvenient, I hope that it is worth it to you in the long run. Thanks for using the theme, and feel free to submit issues as needed.
未来可期
斜向遍历二维数组的代码框架
在动态规划中有时会需要斜着遍历二维数组,在这里用c++简单记录一下遍历的代码:
第105题的几种思路
BFS两个模板
BFS使用队列,将每个目前未搜索的结点依次入队,然后弹出队列首部元素进行遍历,一般有两个模板: