You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
解题思路:
动态规划,类似于斐波那契数列。
X X X....
分类:
其他好文 时间:
2015-05-07 14:28:31
阅读次数:
103
Reverse a singly linked list.click to show more hints.Hint:A linked list can be reversed either iteratively or recursively. Could you implement both?I...
分类:
其他好文 时间:
2015-05-07 14:20:03
阅读次数:
121
Word SearchGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, wh...
分类:
其他好文 时间:
2015-05-07 14:17:13
阅读次数:
106
在使用Android Studio进行开发的过程中,有时候编译运行时,会出现如下提示: ADB not responding. You can wait more,or kill"abd.exe" process manually and click ‘Restart‘ 出现这个提示的时候,事实上任务管...
分类:
数据库 时间:
2015-05-07 12:48:04
阅读次数:
179
ROMRead-only memory(ROM) is a class ofstoragemedium used incomputersand other electronic devices. Data stored in ROM can only be modified slowly, with...
分类:
其他好文 时间:
2015-05-07 12:04:55
阅读次数:
132
How can I (automatically) move to the currently playing track in the playlist?[edit] By default, double-clicking the status bar will highlight the cur...
分类:
其他好文 时间:
2015-05-07 11:55:03
阅读次数:
224
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:
其他好文 时间:
2015-05-07 10:01:09
阅读次数:
101
vi /etc/my.cnf 查看日志文件路径:log-error=/var/log/mysqld.log查看报错日志:之前的服务器被别人拿了,所以自己买了台美国vps,根据笔记安装完启动mysql,又启动不了。查看了错误日志引用090321 18:55:03 mysqld_safe Startin...
分类:
数据库 时间:
2015-05-07 00:38:00
阅读次数:
244
Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
解题思路:
按照小学的做法,每位...
分类:
其他好文 时间:
2015-05-06 21:16:09
阅读次数:
118
https://msdn.microsoft.com/en-us/library/windows/desktop/bb509602(v=vs.85).aspxUnroll the loop until it stops executing. Can optionally specify the ma...
分类:
其他好文 时间:
2015-05-06 21:05:53
阅读次数:
124