问题描述:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 ...
分类:
编程语言 时间:
2015-12-18 10:20:26
阅读次数:
171
题目描述:(链接)Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.解题思路: 1 /** 2 * Definition for ....
分类:
其他好文 时间:
2015-12-17 22:27:19
阅读次数:
228
题目描述:(链接)Given an array where elements are sorted in ascending order, convert it to a height balanced BST.解题思路: 1 /** 2 * Definition for a binary tre....
分类:
其他好文 时间:
2015-12-17 20:42:02
阅读次数:
122
Populating Next Right Pointers in Each NodeMy SubmissionsQuestionTotal Accepted:72323Total Submissions:199207Difficulty:MediumGiven a binary tree s...
分类:
其他好文 时间:
2015-12-17 19:07:33
阅读次数:
127
Binary Tree Right Side ViewTotal Accepted:28755Total Submissions:92186Difficulty:MediumGiven a binary tree, imagine yourself standing on therightside ...
分类:
其他好文 时间:
2015-12-17 19:05:29
阅读次数:
140
Lowest Common Ancestor of a Binary Search TreeTotal Accepted:42225Total Submissions:111243Difficulty:EasyGiven a binary search tree (BST), find the lo...
分类:
其他好文 时间:
2015-12-17 15:43:53
阅读次数:
120
Same TreeTotal Accepted:98221Total Submissions:232503Difficulty:EasyGiven two binary trees, write a function to check if they are equal or not.Two bin...
分类:
其他好文 时间:
2015-12-17 12:55:12
阅读次数:
119
Path SumTotal Accepted:81706Total Submissions:269391Difficulty:EasyGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such t...
分类:
其他好文 时间:
2015-12-17 12:44:49
阅读次数:
204
Invert Binary TreeTotal Accepted:55757Total Submissions:132365Difficulty:EasyInvert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4...
分类:
其他好文 时间:
2015-12-17 12:39:13
阅读次数:
113
Symmetric TreeTotal Accepted:84678Total Submissions:259420Difficulty:EasyGiven a binary tree, check whether it is a mirror of itself (ie, symmetric ar...
分类:
其他好文 时间:
2015-12-17 12:27:06
阅读次数:
120