题目描述:
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?
思路:斐波那契数列的应用。f(n)=f...
分类:
其他好文 时间:
2014-10-28 12:13:05
阅读次数:
211
from:http://www.111cn.net/phper/thinkPhp/57748.htm一、在配置文件中开启了thinkphp的大小写识别功能,使链接大小写都可以正常访问:‘URL_CASE_INSENSITIVE’ =>true文件命名都是规范的,但是在模板中使用__URL__获取当前...
分类:
Web程序 时间:
2014-10-28 12:05:57
阅读次数:
151
Switch cases evaluate cases from top to bottom, stopping when a case succeeds.(For example,switch i {case 0:case f():}does not callfifi==0.)Note:Time ...
分类:
其他好文 时间:
2014-10-28 08:10:58
阅读次数:
221
You probably knew whatswitchwas going to look like.A case body breaks automatically, unless it ends with afallthroughstatement.package main import ( ....
分类:
其他好文 时间:
2014-10-28 00:45:07
阅读次数:
112
1.一个表,三个字段A,B,C,现在要求如果A字段比B大,返回A,否则返回B 如果B字段比C大,返回B,否则返回C。写出SQLSELECT CASE WHEN a>b THEN a ELSE b END a1, CASE WHEN b>c THEN b...
分类:
数据库 时间:
2014-10-27 22:34:07
阅读次数:
178
package mainimport "fmt"import "os"import "os/signal"import "syscall"func main() { go SignalProc() done := make(chan bool, 1) for { select { case <-.....
分类:
其他好文 时间:
2014-10-27 19:27:09
阅读次数:
139
Given a string s consists of upper/lower-case alphabets and empty space characters
' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defi...
分类:
其他好文 时间:
2014-10-27 14:26:12
阅读次数:
249
具体需求: 有一个登陆页面, (假如上面有2个textbox, 一个提交按钮。 请针对这个页面设计30个以上的testcase.) 此题的考察目的:面试者是否熟悉各种测试方法,是否有丰富的Web测试经验, 是否了解Web开发,以及设计Test case的能力 这个题目还是相当有难度的, 一般的人.....
分类:
Web程序 时间:
2014-10-27 12:32:14
阅读次数:
251
通过sql case when对商品表自定义属性进行查询,实现行专列效果。...
分类:
其他好文 时间:
2014-10-27 11:03:03
阅读次数:
121
本文简单探讨一下Scala语言Case Class的实现机制...
分类:
其他好文 时间:
2014-10-27 10:57:23
阅读次数:
241