/*hdr
** Copyright ...
** AUTHOR MichaelMa
** DATE 4-May-2014
** DESCRIPTION implement a mode of observer in C
** NOTE may be some bugs ...
分类:
编程语言 时间:
2014-05-10 09:53:03
阅读次数:
679
-(void) bringSublayerToFront:(CALayer*)layer{[layer
removeFromSuperlayer];[self insertSublayer:layer atIndex:[self.sublayers
count]-1];}-(void) sendSu...
分类:
移动开发 时间:
2014-05-08 14:01:24
阅读次数:
386
1. What is the LDA?LDA(latent dilichlet allocation)
is a method to assign the topic (distribution) of a given document. However,
note that this model ...
分类:
其他好文 时间:
2014-05-08 13:16:49
阅读次数:
289
CGRect focusFrame
=[_scrollViewconvertRect:_joinView.frametoView:self.view];这里_scrollView是self.view的子控件_joinView是_scrollView的子控件,这里是计算出_joinView在self....
分类:
移动开发 时间:
2014-05-08 11:59:01
阅读次数:
335
1. Abstract &
introductionref:http://static.googleusercontent.com/media/research.google.com/zh-CN//archive/spanner-osdi2012.pdfSpanner是google为了弥补bigta...
分类:
数据库 时间:
2014-05-08 06:46:57
阅读次数:
640
Subsets IGiven a set of distinct integers, S,
return all possible subsets.Note:Elements in a subset must be in non-descending
order.The solution set m...
分类:
其他好文 时间:
2014-05-07 11:13:33
阅读次数:
299
【题目】
原文:
1.3 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables are fine. An
extra copy of...
分类:
其他好文 时间:
2014-05-07 08:48:12
阅读次数:
372
9.2 构造方法
python 中也属于自己的构造函数和析构函数,
class fibs:
def __init__(self):
self.a = 0
self.b = 1
def next(self):
self.a,self.b = self.b,self.a+self.b
return self.a
def __iter__(self):
return sel...
分类:
编程语言 时间:
2014-05-07 05:51:56
阅读次数:
500
题目
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
Note: Recursiv...
分类:
其他好文 时间:
2014-05-07 03:30:19
阅读次数:
254
【Question】
Given an array S of n integers, are there elements a, b, c in S such
that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in ...
分类:
其他好文 时间:
2014-05-06 14:57:29
阅读次数:
318