【144-Binary Tree Postorder Traversal(二叉树非递归后序遍历)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a binary tree, return the postorder traversal of its nodes’ values.
For example:
Given binary tree {1,...
分类:
编程语言 时间:
2015-08-19 08:15:55
阅读次数:
207
【144-Binary Tree Preorder Traversal(二叉树非递归前序遍历)(未完成)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a binary tree, return the preorder traversal of its nodes’ values.
For example:
Given binary tree...
分类:
编程语言 时间:
2015-08-19 08:15:39
阅读次数:
869
129 Sum Root to Leaf Numbers链接:https://leetcode.com/problems/sum-root-to-leaf-numbers/
问题描述:
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An...
分类:
其他好文 时间:
2015-08-19 07:08:42
阅读次数:
176
100 Same Tree链接:https://leetcode.com/problems/same-tree/
问题描述:
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-08-19 07:08:34
阅读次数:
146
101 Symmetric Tree链接:https://leetcode.com/problems/symmetric-tree/
问题描述:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree...
分类:
其他好文 时间:
2015-08-19 07:08:32
阅读次数:
143
96 Unique Binary Search Trees链接:https://leetcode.com/problems/unique-binary-search-trees/
问题描述:
Given n, how many structurally unique BST’s (binary search trees) that store values 1…n?For example,
G...
分类:
其他好文 时间:
2015-08-19 07:08:28
阅读次数:
126
98 Validate Binary Search Tree链接:https://leetcode.com/problems/validate-binary-search-tree/
问题描述:
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as...
分类:
其他好文 时间:
2015-08-19 01:59:06
阅读次数:
171
题意:给定一幅图的连接情况,给出每个点的权值,四种操作: 1 x y 连接x、y所在子树; 2 x y 将同一棵树上的x,y分离,形成两棵子树; 3 w x y 将x、y之间路径上的所有点权加w; 4 x y 查询x、y路径上点权的最大值;动态树学习参考:http://www...
分类:
其他好文 时间:
2015-08-19 00:26:30
阅读次数:
104
leetcode -Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are struct...
分类:
其他好文 时间:
2015-08-19 00:20:59
阅读次数:
121
Description
The Sky is Sprite.
The Birds is Fly in the Sky.
The Wind is Wonderful.
Blew Throw the Trees
Trees are Shaking, Leaves are Falling.
Lovers Walk passing, and so are You.
........
分类:
其他好文 时间:
2015-08-18 21:27:24
阅读次数:
268