码迷,mamicode.com
首页 >  
搜索关键字:search box    ( 20571个结果
动态原型模式,解决原型创建对象的时候未封装问题
//动态原型模式function Box(name,age){ this.name = name; this.age = age; this.family = ['哥哥','姐姐','妹妹']; if(typeof this.run != 'function'){ ...
分类:其他好文   时间:2014-08-17 18:17:42    阅读次数:176
zoj3013Word Segmenting (字典树+dp)
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
Convert Sorted Array to Binary Search Tree
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
对象属性操作-ios
#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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!