1、题目名称 Binary Tree Paths(获取一棵树从顶点到每个叶节点的路径) 2、题目地址 https://leetcode.com/problems/binary-tree-paths/ 3、题目内容 英文:Given a binary tree, return all root-to-leaf path...
分类:
其他好文 时间:
2015-11-12 00:05:59
阅读次数:
183
描述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 dep...
分类:
其他好文 时间:
2015-11-11 22:06:43
阅读次数:
214
题目:Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 ...
分类:
其他好文 时间:
2015-11-11 16:15:52
阅读次数:
183
题目:Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. ...
分类:
其他好文 时间:
2015-11-11 15:00:32
阅读次数:
211
Same Tree【100】Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurall...
分类:
其他好文 时间:
2015-11-11 11:25:04
阅读次数:
139
题目不同的二叉查找树给出n,问由 1...n为节点组成的不同的二叉查找树有多少种?样例给出n = 3,有5种不同形态的二叉查找树:1 3 3 2 1 \ / / / \ \ 3 2 1 ...
分类:
其他好文 时间:
2015-11-10 21:07:32
阅读次数:
183
[Window Title]RegSvr32[Content]The module "tt.ocx" failed to load.Make sure the binary is stored at the specified path or debug it to check for proble...
分类:
其他好文 时间:
2015-11-10 17:49:47
阅读次数:
208
using UnityEngine;using System.Collections;using System.IO;using System.Runtime.Serialization.Formatters.Binary;// A test object that needs to be seri...
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2015-11-10 07:01:00
阅读次数:
261
Add BinaryGiven two binary strings, return their sum (also a binary string).Examplea = 11b = 1Return 100solution:比较两个string的长度,将长读较小的string左边用0补齐。设置进位...
分类:
其他好文 时间:
2015-11-10 07:00:51
阅读次数:
204