2014年11月12日

Climbing Stairs

摘要: Climbing StairsYou 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 way... 阅读全文

posted @ 2014-11-12 15:38 luckygxf 阅读(163) 评论(0) 推荐(0) 编辑

静态查找

摘要: 静态查找设置哨兵,可以减少比较次数,效率会有所提高。静态查找算法简单,效率较低 1 package com.gxf.search; 2 3 /** 4 * 静态查找实现 5 * @author xiangfei 6 * 7 */ 8 public class StaticSearch { ... 阅读全文

posted @ 2014-11-12 13:05 luckygxf 阅读(357) 评论(0) 推荐(0) 编辑

导航