![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
nanfenghehe
这个作者很懒,什么都没留下…
展开
-
Valid Sudoku
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules .The Sudoku board could be partially filled, where empty cells are filled with the character '.' .A partially fil原创 2015-11-29 11:15:22 · 223 阅读 · 0 评论 -
leetcode 771
leetcode 771 Jewels and StonesYou're given stringsJrepresenting the types of stones that are jewels, andSrepresenting the stones you have. Each character inSis a type of stone you have. You...原创 2019-03-05 14:30:31 · 273 阅读 · 0 评论 -
青蛙跳台,爬梯子和堆方块-斐波那契数列举一反三
青蛙跳台和leetcode中climbing stairs为同一个问题:一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级台阶总共有多少跳法:解答:我们把跳上n级台阶堪称是n的函数记为:f(n)。当n>2时,第一次跳的时候就有两种不同选择:一是第一次只跳1级,这种跳法数目等于后面n-1级跳法数目,即f(n-1);另外一种选择是跳2级,这种跳法数目为后面n-2级跳...原创 2019-05-08 10:02:51 · 301 阅读 · 0 评论