Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-09-03 19:50:37
阅读次数:
156
思路: 从右上方开始,若小于 target, 则往下走;若大于 target, 对改行二分查找;若等 target, 返回 true.
思路: 斐波那契。此处用动归。 还可以使用矩阵二分乘。(剑指offer: 题9)
分类:
其他好文 时间:
2014-09-03 19:42:47
阅读次数:
249
display:box;box-flex是css3新添加的盒子模型属性,它的出现可以解决我们通过N多结构、css实现的布局方式。经典的一个布局应用就是布局的垂直等高、水平均分、按比例划分。目前box-flex属性还没有得到firefox、Opera、chrome浏览器的完全支持,但可以使用它们的私有...
分类:
其他好文 时间:
2014-09-03 16:47:26
阅读次数:
353
display:box;box-flex是css3新添加的盒子模型属性,它的出现可以解决我们通过N多结构、css实现的布局方式。经典的一个布局应用就是布局的垂直等高、水平均分、按比例划分。目前box-flex属性还没有得到firefox、Opera、chrome浏览器的完全支持,但可以使用它们的私有...
分类:
Web程序 时间:
2014-09-03 09:38:34
阅读次数:
249
Missing styles. Is the correct theme chosen for this layout?Use the Theme combo box above the layout to choose a different layout, or fix the theme st...
分类:
移动开发 时间:
2014-09-03 01:30:35
阅读次数:
296
今天在做时间滑动条的时候,遇到box-sizing的问题,记录下来。举个例子,下面的布局: (1)css中没有加下面的设置:* {-webkit-box-sizing: border-box;-moz-box-sizing: border...
分类:
其他好文 时间:
2014-09-02 21:11:55
阅读次数:
267
nie.config.copyRight.setGray();var nieCarousel = (function ($) { var defaultOptions = { children: '.center-slide-box a', nextBtn: '.s...
分类:
Web程序 时间:
2014-09-02 19:41:55
阅读次数:
262
之前没有认真的研究过,padding-bottom的值如果是百分比,那么它的实际值是根据父类的宽度来调整的。我还以为是根据这个元素的本身的宽度来定义呢?汗。。padding-top/padding-left/padding-right也是一样算。不过现在有一个CSS3属性叫box-sizing,可以...
分类:
Web程序 时间:
2014-09-02 19:30:15
阅读次数:
854
Black Box
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 7436
Accepted: 3050
Description
Our Black Box represents a primitive database. It can save an int...
分类:
其他好文 时间:
2014-09-02 17:46:05
阅读次数:
198
Crazy Search
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 23168
Accepted: 6513
Description
Many people like to solve hard puzzles some of which may le...
分类:
其他好文 时间:
2014-09-02 12:27:34
阅读次数:
208