摘要:
题目:Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume t... 阅读全文
摘要:
题目:Given an array of integers, every element appears three times except for one. Find that single ... 阅读全文
摘要:
题目:Given an array of integers, every element appears twice except for one. Find that single one.No... 阅读全文
摘要:
题目:Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from... 阅读全文
摘要:
题目:Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to r... 阅读全文
摘要:
题目:Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from le... 阅读全文
摘要:
题目:Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without chan... 阅读全文
摘要:
题目:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Re... 阅读全文
摘要:
题目:Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is define... 阅读全文
摘要:
题目:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced bin... 阅读全文