The Cartesian coordinate system is set in the sky. There you can see n stars, the i-th has coordinates (xi, yi), a maximum brightness c, equal for all ...
分类:
其他好文 时间:
2017-08-01 09:48:54
阅读次数:
290
自定义View时出现的,搞了好半天终于搞好了。 继承View时要要实现它所有的构造函数。 如: ...
分类:
移动开发 时间:
2017-07-31 23:53:54
阅读次数:
969
这道题让我们求二叉树的坡度,某个结点的坡度的定义为该结点的左子树之和与右子树之和的差的绝对值,这道题让我们求所有结点的坡度之和. 这道题最好的解法应该是用后序遍历来做,因为后序遍历的顺序是左-右-根,那么就会从叶结点开始处理,这样我们就能很方便的计算结点的累加和,同时也可以很容易的根据子树和来计算t ...
分类:
其他好文 时间:
2017-07-31 22:58:24
阅读次数:
129
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and ...
分类:
其他好文 时间:
2017-07-31 15:47:27
阅读次数:
120
字符串类型 固定长度:char nchar n 表示Unicode编码 可变长度: varchar2 nvarchar2 数字类型:number(P,S)P:整数位数,S小数位数 integer 整数 BINARY_FLOAT 单浮点 BINARY_DOUBLE 双浮点 FLOAT(N)浮点数 N表 ...
分类:
数据库 时间:
2017-07-31 13:27:53
阅读次数:
216
Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a ...
分类:
其他好文 时间:
2017-07-31 10:12:11
阅读次数:
180
【109-Convert Sorted List to Binary Search Tree(排序链表转换成二叉排序树)】 【LeetCode-面试算法经典-Java实现】【全部题目文件夹索引】 原题 Given a singly linked list where elements are sor ...
分类:
编程语言 时间:
2017-07-30 19:06:41
阅读次数:
125
【101-Symmetric Tree(对称树)】 【LeetCode-面试算法经典-Java实现】【全部题目文件夹索引】 原题 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its ...
分类:
编程语言 时间:
2017-07-30 18:12:16
阅读次数:
156
【106-Construct Binary Tree from Inorder and Postorder Traversal(通过中序和后序遍历构造二叉树)】 【LeetCode-面试算法经典-Java实现】【全部题目文件夹索引】 原题 Given inorder and postorder tr ...
分类:
编程语言 时间:
2017-07-30 16:54:59
阅读次数:
115
Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. Example 1: Input: 3 / \ 9 20 / \ 15 7 Outp ...
分类:
其他好文 时间:
2017-07-30 15:43:46
阅读次数:
111