This website requires JavaScript.
Explore
Help
Sign In
StarMirror
/
cpp-interview
Watch
1
Star
0
Fork
0
You've already forked cpp-interview
mirror of
https://github.com/huihut/interview.git
synced
2024-03-22 13:10:48 +08:00
Code
Issues
Projects
Releases
Wiki
Activity
8d59b59d13
cpp-interview
/
Problems
/
NeumannNeighborProblem
History
huihut
8a3d4f0e08
添加查找算法和SingleProblem
2018-02-11 01:08:43 +08:00
..
Formula
添加查找算法和SingleProblem
2018-02-11 01:08:43 +08:00
Recursive
添加查找算法和SingleProblem
2018-02-11 01:08:43 +08:00
README.md
添加查找算法和SingleProblem
2018-02-11 01:08:43 +08:00
README.md
Unescape
Escape
冯诺依曼邻居问题
问题说明
某算法从一个1
×
1的方格开始
,
每次都会在上次图形的周围再加上一圈方格
,
在第n次的时候要生成多少个方格
?
下图给出了n = 0
,
1
,
2是的结果。
解法
通项公式解法
递推关系解法