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