码迷,mamicode.com
首页 >  
搜索关键字:element traversal    ( 13647个结果
Android 官方文档:(二)应用清单 —— 2.2 <action>标签
syntax:contained in:description:Adds an action to an intent filter.An element must contain one or more elements. If it doesn't contain any, noInten...
分类:移动开发   时间:2014-06-18 14:48:12    阅读次数:252
L6.Margin collapse Summary [to be continued]
1、只有块级box可以collapse;2、floated box 的margins不会collapse;3、overflow (而不是visible)不会同它的子元素发生collapse;4、root element不collapse 指什么?5、If A's parent is ‘rl’:If ...
分类:其他好文   时间:2014-06-18 14:39:13    阅读次数:281
【Leetcode】Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Could you devise a constant space solution? 思路:因为需要遍历整个矩阵,时间复杂度肯定需要O(m * n),对于空间复杂度而言,第一种是可以使用O(m * n),...
分类:其他好文   时间:2014-06-18 12:33:39    阅读次数:167
html5 canvas
The HTML5 element is used to draw graphics, on the fly, via scripting (usually JavaScript).1、本身没有外观,只是在文档中创建了一个画板,我们需要使用脚本来画图2、IE9前的浏览器不支持canvas3、使用c....
分类:Web程序   时间:2014-06-18 10:35:17    阅读次数:274
JQuery选择器大全
1.基本选择器选择器描述返回示例#id 单个元素 $("#test").class集合元素$(".test")element集合元素$("p")* 匹配所有元素集合元素$("*")selector1,selector2集合元素$("div,span,p")2. 层次选择器选择器描述返回示例$("a....
分类:Web程序   时间:2014-06-18 09:04:23    阅读次数:186
LeetCode:Remove Element
题目链接 Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn...
分类:其他好文   时间:2014-06-17 23:45:10    阅读次数:373
源码分析:onAttach, onMeasure, onLayout, onDraw 的顺序。
从前文《 源码解析:dialog, popupwindow, 和activity 的第一个view是怎么来的?》中知道了activity第一个view或者说根view或者说mDecorView 其实就是一个FrameLayout,以及是在系统handleResume的时候加入到系统windowManager中的,并由framework中的ViewRootImpl 接管,通过ViewRootIm...
分类:其他好文   时间:2014-06-17 22:07:59    阅读次数:277
UML的基本关联
?? First, a dependency is a semantic relationship between two model elements in which a change to one element (the independent one) may affect the semantics of the other element (the dependent on...
分类:其他好文   时间:2014-06-17 18:50:36    阅读次数:182
[LeetCode] Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:其他好文   时间:2014-06-17 14:57:30    阅读次数:269
leetcode - Binary Tree Preorder Traversal && Binary Tree Inorder Traversal && Binary Tree Postorder Traversal
简单来说,就是二叉树的前序、中序、后序遍历,包括了递归和非递归的方法前序遍历(注释中的为递归版本): 1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 struct TreeNode 9 {1...
分类:其他好文   时间:2014-06-17 12:53:42    阅读次数:416
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!