//动态原型模式function Box(name,age){ this.name = name; this.age = age; this.family = ['哥哥','姐姐','妹妹']; if(typeof this.run != 'function'){ ...
分类:
其他好文 时间:
2014-08-17 18:17:42
阅读次数:
176
Word Segmenting
Time Limit: 5 Seconds
Memory Limit: 32768 KB Special Judge
One key technology in Chinese search engine is Word Segmenting, which is more difficult than English Word Segmenting...
分类:
其他好文 时间:
2014-08-17 17:06:42
阅读次数:
364
//原型创建对象function Box(){};Box.prototype.name = 'Lee';Box.prototype.age = 100;Box.prototype.run = function(){ return this.name + this.age + 'running....
分类:
其他好文 时间:
2014-08-17 15:30:22
阅读次数:
179
//构造函数创建对象function Box(name,age){ //创建一个对象 this.name = name; //添加一个属性 this.age = age; this.run = function(){ return this...
分类:
其他好文 时间:
2014-08-17 15:25:42
阅读次数:
137
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.思路:取数组的中点为树的根,前半部分为左子树,后半部分为右子树。 1 class Solution { 2...
分类:
其他好文 时间:
2014-08-17 13:02:12
阅读次数:
210
1、 skiplist 巩固skiplist 跳跃表,简单理解是用空间换时间,来实现链表二分查找的数据结构可以用pre、next、blow、above实现四向的链表操作,可以简化search、insert、delete、get等操作时间复杂度:2、 lucene 巩固开源的全文检索引擎框架主要过程:...
分类:
Web程序 时间:
2014-08-17 11:45:02
阅读次数:
256
#import @class Author;@interface Books : NSObject{ @private NSString *color; int book_id; NSString *box; Author *author; NSArray *r...
分类:
移动开发 时间:
2014-08-17 03:48:31
阅读次数:
226