题目 爬楼梯问题,这是一道很有趣的问题。首先看题目: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?这...
分类:
其他好文 时间:
2015-02-20 14:08:50
阅读次数:
160
Problem Description
You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the g...
分类:
其他好文 时间:
2015-02-17 16:33:16
阅读次数:
146
Posted on 09/09/2014 In almost all cases, when mounting a CIFS-share on a Linux host, you will need to supply some credentials. Either you could enter...
CGFloat和float的区别,什么时候用哪一种?CGFloat is just a typedef for either float or double.The basic type for all floating-point values.[plain]view plaincopytyped...
分类:
移动开发 时间:
2015-02-14 18:48:32
阅读次数:
199
当我们使用如下命令检出开发分支:gitcheckout-vdev然后再dev分支上gitpull时候经常报如下错误:HEADisnowat990a248Mergebranch‘dev‘ofgit.avlyun.org:userc/new-6xxintodev
Youaskedmetopullwithouttellingmewhichbranchyou
wanttomergewith,and‘branch.dev.merge‘in
yourconf..
分类:
其他好文 时间:
2015-02-12 16:26:22
阅读次数:
138
A robot is located at the top-left corner of a m x n grid(marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. Therobot is trying to reach the bott...
分类:
其他好文 时间:
2015-02-10 23:18:37
阅读次数:
390
题解:类似于最大上升子序列Iahub got bored, so he invented a game to be played on paper.He writesnintegersa1,?a2,?...,?an. Each of those integers can be either 0 or...
分类:
其他好文 时间:
2015-02-10 20:09:56
阅读次数:
159
mmap函数简介:mmap函数是unix/linux下的系统调用,来看《Unix Netword programming》卷二12.2节对mmap的介绍:The mmap function maps either a file or a Posix shared memory object into...
分类:
系统相关 时间:
2015-02-09 20:09:39
阅读次数:
217
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2015-02-09 15:48:29
阅读次数:
101
直接在TortoiseSVN中修改过往日志,会提示:DAV request failed;it's possible that the repository's pre-revprop-change hook either failed or is non-existentAt least one ...
分类:
其他好文 时间:
2015-02-09 12:43:46
阅读次数:
200