https://oj.leetcode.com/problems/binary-tree-level-order-traversal/ Given a binary tree, return the level order traversal of its nodes' values. (ie, f...
分类:
其他好文 时间:
2014-11-19 08:33:46
阅读次数:
179
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2014-11-19 07:18:07
阅读次数:
126
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
编程语言 时间:
2014-11-19 07:13:48
阅读次数:
206
Threshold Binary This thresholding operation can be expressed as: So, if the intensity of the pixel is higher than , then the new pixel intensity is ....
分类:
其他好文 时间:
2014-11-18 23:53:21
阅读次数:
292
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".Hide TagsMathStringclass Solution {public: s...
分类:
其他好文 时间:
2014-11-18 23:24:37
阅读次数:
199
这次我觉得我的智商太低,想了很久才写出来。题目是让求镜像二叉树判断,题目如下: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, th...
分类:
其他好文 时间:
2014-11-18 13:15:28
阅读次数:
181
题目描述:
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,...
分类:
其他好文 时间:
2014-11-18 10:25:11
阅读次数:
145
Binary Tree Inorder TraversalGiven a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ...
分类:
其他好文 时间:
2014-11-17 22:36:09
阅读次数:
271
function?md5(data)?{
????var?Buffer?=?require("buffer").Buffer;
????var?buf?=?new?Buffer(data);
????var?str?=?buf.toString("binary");
????var?crypto?=?require("crypto...
分类:
Web程序 时间:
2014-11-17 19:52:11
阅读次数:
185
【题目】
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,3,2].
Note: Recursi...
分类:
其他好文 时间:
2014-11-17 17:52:41
阅读次数:
191