Binary Tree Right Side View问题:Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered...
分类:
其他好文 时间:
2015-04-27 00:00:59
阅读次数:
265
把上一个类似的题目中的list反转就可以了。/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * Tree...
分类:
其他好文 时间:
2015-04-26 22:41:07
阅读次数:
142
转自http://blog.csdn.net/abcjennifer/article/details/7573916Linux下出现launch failed.Binary not found的解决方案:首先当你把网上关于mingw的解决方案都看晕了的时候,告诉你,别看关于mingw的了。Linux...
分类:
系统相关 时间:
2015-04-26 22:30:33
阅读次数:
145
https://leetcode.com/problems/binary-tree-maximum-path-sum/Given a binary tree, find the maximum path sum.The path may start and end at any node in th...
分类:
其他好文 时间:
2015-04-26 22:23:56
阅读次数:
174
题目:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total num...
分类:
其他好文 时间:
2015-04-26 21:02:58
阅读次数:
143
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:
其他好文 时间:
2015-04-26 19:34:19
阅读次数:
140
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:
其他好文 时间:
2015-04-26 16:31:44
阅读次数:
119
SQLServer 提供了 25 种基本数据类型: ·Binary [(n)] 二进制数据 既可以是固定长度的(Binary),也可以是变长度的。其中,n 的取值范围是从 1 到 8000。其存储窨的大小是 n + 4 个字节。 ·Varbinary [(n)] 二进制数据 n 位变长度的二进制.....
分类:
数据库 时间:
2015-04-26 15:10:51
阅读次数:
212
https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/Given inorder and postorder traversal of a tree, construct th...
分类:
其他好文 时间:
2015-04-26 15:00:15
阅读次数:
116
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 and the nodes have the same value.
题意:判断两棵树是否一样...
分类:
其他好文 时间:
2015-04-26 13:50:09
阅读次数:
100