码迷,mamicode.com
首页 >  
搜索关键字:note    ( 7358个结果
Subsets
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 Number
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
Yii框架常见问题: CGridView关联表字段的filter问题解决
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 widget 开发实例 : 桌面便签程序的实现具体解释和源代码 (上)
如有错漏请不吝拍砖指正,转载请注明出处,很感谢 桌面便签软件是android上经常使用软件的一种,比方比較早的Sticky Note,就曾很流行,Sticky Note的介绍能够參见 http://www.tompda.com/c/article/11778/而实际上使用android平台对widg...
分类:移动开发   时间:2014-08-21 21:05:24    阅读次数:300
【Leetcode长征系列】Construct Binary Tree from Inorder and Postorder Traversal
原题: 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
[LeetCode] Anagrams
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
一个利用HTML5 localStorage功能的todo应用(angularJs+Bootstrap)
今天在网上看到一个简单的todo应用,使用angularJs做前端数据绑定,利用localStorage来存储数据,觉得挺有意思的。 Angular Todo Note App Add {{note}} ng-app声明了使用todoApp作为model...
分类:Web程序   时间:2014-08-20 23:55:13    阅读次数:272
Populating Next Right Pointers in Each Node II
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
Merge Sorted Array
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
Subsets II
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!