jQuery 1.5 发布的时候 john resig 大神说所用的代码优化程序从Google Closure切换到UglifyJS,新工具的压缩效果非常令人满意。 UglifyJS 是一个服务端node.js的压缩程序。我测试了一下压缩率确实比较高。 所以值得写篇文章推荐下。 你也可以尝试一下.....
分类:
编程语言 时间:
2014-07-07 12:29:24
阅读次数:
303
问题描述如下:Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra s...
分类:
其他好文 时间:
2014-07-03 21:00:48
阅读次数:
401
题目描述There are N tasks and M resources, each task is asked to use some resources and each resource can only be used by at most one task. You are asked ...
分类:
其他好文 时间:
2014-07-03 20:35:23
阅读次数:
274
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:
其他好文 时间:
2014-07-03 20:34:46
阅读次数:
193
不戚戚于贫贱,不汲汲于富贵 ---五柳先生Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dict.....
分类:
其他好文 时间:
2014-07-03 20:21:27
阅读次数:
225
Express 4.x的学习笔记,4.x和3.x的版本有了很多不同。看了官网上资料,也翻了很多博客。
分类:
Web程序 时间:
2014-07-03 20:16:02
阅读次数:
548
1.abstract:修饰抽象类,抽象方法,不可以被实例化2.extends:继承父类中的所有属性和方法3.implements:使用接口,一个类只能继承一个类,但可以使用多个接口,接口中的方法全部为抽象方法,使用时,必须全部实现;4.interface:定义接口类;5.define:定义全局常量;...
分类:
Web程序 时间:
2014-07-02 18:23:57
阅读次数:
253
Pick-up sticks
Problem Description
Stan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks,...
分类:
其他好文 时间:
2014-07-02 15:29:53
阅读次数:
295
题比较容易读懂,但是建模需动点脑子:
一个子串加常数形成的子串认为跟子串相同,求最长不重叠重复子串
题目中说
is disjoint from (i.e., non-overlapping with) at least one of its other appearance(s)
意味着不能重叠,举个例子
1, 2,3, 52, 53,54
1,2, 3和 52, 5...
分类:
其他好文 时间:
2014-07-02 15:15:01
阅读次数:
289
http://ionicframework.com/blog/angularjs-console/1: Access ScopesWe can access any scope (even isolated ones!) on the page with a simple JS one-liner:...
分类:
Web程序 时间:
2014-07-02 14:53:37
阅读次数:
443