Given a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not c...
分类:
其他好文 时间:
2014-08-23 15:11:00
阅读次数:
153
LeetCode: Single NumberGiven an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a...
分类:
其他好文 时间:
2014-08-23 12:38:10
阅读次数:
212
Model: 1. 添加filter用的属性 var $a = “”; var $b = “”; 2. 修改rules方法中的配置 array(‘……., a, b’, ‘safe’, ‘on’=>’search’); 3. 注意relations方法 public function relations() { // NOTE:...
分类:
其他好文 时间:
2014-08-22 21:17:29
阅读次数:
315
如有错漏请不吝拍砖指正,转载请注明出处,很感谢 桌面便签软件是android上经常使用软件的一种,比方比較早的Sticky Note,就曾很流行,Sticky Note的介绍能够參见 http://www.tompda.com/c/article/11778/而实际上使用android平台对widg...
分类:
移动开发 时间:
2014-08-21 21:05:24
阅读次数:
300
原题:
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
思路:和上一题一样,后续我们可以通过最后一个值得到根的值,同样可以通过定位根的值得到左右子树的...
分类:
其他好文 时间:
2014-08-21 17:22:24
阅读次数:
138
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.用map记录出现的string的下标,避免了再次遍历。class Solu...
分类:
其他好文 时间:
2014-08-21 16:55:04
阅读次数:
177
今天在网上看到一个简单的todo应用,使用angularJs做前端数据绑定,利用localStorage来存储数据,觉得挺有意思的。 Angular Todo Note App Add {{note}} ng-app声明了使用todoApp作为model...
分类:
Web程序 时间:
2014-08-20 23:55:13
阅读次数:
272
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 still work?
Note:
You may only use constant extr...
分类:
其他好文 时间:
2014-08-20 22:47:33
阅读次数:
297
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-08-20 22:28:12
阅读次数:
244
Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order...
分类:
其他好文 时间:
2014-08-20 19:37:12
阅读次数:
175