题目
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums
to T.
The same repeated number may be chosen from C un...
分类:
其他好文 时间:
2014-06-15 20:00:18
阅读次数:
185
题目
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers
sums to T.
Each number in C may only be used once in...
分类:
其他好文 时间:
2014-06-15 19:24:21
阅读次数:
229
在Asp.Net MVC4里面UI层也就是View层默认使用HTML5以及与HTML相对应的CSS3,JS默认使用JQuery和JQuery UI。新建一个MVC4项目,项目会自动包含JQuery、JQuery UI所需要的文件及智能提示支持; HTML则是自动生成HTML5格式标签的页面。
先来看看MVC4项目里面对这些内容的支持:
在MVC4项目里面有Scripts和Content两个文件...
分类:
Web程序 时间:
2014-06-15 18:36:39
阅读次数:
670
题目
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 order.
You may assume no duplicates i...
分类:
其他好文 时间:
2014-06-15 17:27:16
阅读次数:
251
三角碎片以非常缓慢的速度旋转移动,如果使用JS实现会出现一像素一像素移动的卡顿
使用CSS3会获得非常理想的效果
transform: translate3d(80px, 150px, 0px) rotate(1220deg);
transition: transform 30s linear 0s;
上面一个属性表示图像变换
translate3d(80px, 150px, 0px) 表...
分类:
移动开发 时间:
2014-06-15 17:15:34
阅读次数:
188
题目
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target i...
分类:
其他好文 时间:
2014-06-15 16:53:32
阅读次数:
177
题目
Given a sorted array of integers, find the starting and ending position of a given target value.
解题思路:
查找一个数出现的范围,给一个排好序的数组和一个数,找出这个数在数组中出现的范围。
这个题直接使用一次遍历就可以得到结果,这样的时间复杂度为O(n)。但是对于有序数组我们一般可以使用二分查找可以得到更好的O(logn)的时间复杂度。我们可以使用二分查找找到这个数第一次出现的位置和这个数最后一次出现的位...
分类:
其他好文 时间:
2014-06-15 16:19:16
阅读次数:
237
这次回来,项目组人走了一大半,都出差去了,我也就照着请假之前强哥给我的学习技术清单来学习吧:AngularJs,bootsrap,smartadmin,html5,css3,一大堆的前台技术,哎,慢慢学吧,等学好了这些前台技术,以后还可以多赚些外快,或者为以后的创业积累一些技术资本。不过,看这些真心枯燥,不过看着老外搞得那些绚丽的网站,心理不得不佩服呀!...
分类:
其他好文 时间:
2014-06-15 15:44:58
阅读次数:
175
在用eclipse操作时,经常用到svn的与资源同步这个操作,但是打开的时候会有很多生成的class文件,其实这些并不需要提交的,因为svn原则上是用来管理源代码的。每次资源同步时看到很多class文件,很不方便,那怎么在svn提交代码时忽略这些呢。请按照下面的操作(分eclipse
svn插件下的...
分类:
其他好文 时间:
2014-06-13 16:40:52
阅读次数:
361