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
4387fee276
cpp-interview
/
Problems
/
NeumannNeighborProblem
/
README.md
huihut
bab1292367
更新冯诺依曼邻居问题外链
2018-12-26 00:46:54 +08:00
397 B
Raw
Blame
History
Unescape
Escape
冯诺依曼邻居问题
问题说明
某算法从一个1
×
1的方格开始
,
每次都会在上次图形的周围再加上一圈方格
,
在第n次的时候要生成多少个方格
?
下图给出了n = 0
,
1
,
2是的结果。
解法
通项公式解法
递推关系解法