# 【leetcode】Construct Binary Tree from Inorder and Postorder Traversal

Question： Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.Anw...

# 【leetcode】Construct Binary Tree from Preorder and Inorder Traversal

Question：  Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.Anw...

# 【leetcode】Binary Tree Inorder Traversal

Question ： Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / ...

# 【leetcode】Flatten Binary Tree to Linked List

Question ： Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 ...

# 【leetcode】Binary Tree Level Order Traversal II

Question ： Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to...

# 【leetcode】Balanced Binary Tree

Question ： 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 whi...

# 【leetcode】Minimum Depth of Binary Tree

Question ： Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to th...

# 【leetcode】Generate Parentheses

Question ：  Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a soluti...

# 【leetcode】Longest Valid Parentheses

Question：Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For &quo...

# 【leetcode】Valid Parentheses

Question ：  Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must c...

# 【leetcode】Binary Tree Maximum Path Sum

Question ：  Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree...

# 【leetcode】Letter Combinations of a Phone Number

Question ： Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on ...

# 【leetcode】Longest Consecutive Sequence

Question ：  Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2...

# 【leetcode】Valid Number

Question ： Validate if a given string is numeric.Some examples:"0" => true" 0.1 " => true"abc" => false"1...

Question ： Given two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to end, such that:Only one lett...

Question ：Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:Only on...

# 【leetcode】Best Time to Buy and Sell Stock III

Question ： Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You...

# 【leetcode】Best Time to Buy and Sell Stock II

Quesion ： Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You ...

# 【leetcode】Best Time to Buy and Sell Stock

Question ：    Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most o...

个人资料
等级：
访问量： 1234万+
积分： 9万+
排名： 15
博客公告
本博客内容，由米扑博客精心整理
欢迎交流，欢迎转载，大家转载注明出处，禁止用于商业目的。

博客专栏
 Android开发的点点滴滴 文章：32篇 阅读：2104785 设计模式 文章：2篇 阅读：46006 Python 学习入门 文章：52篇 阅读：746462 Clojure 学习总结 文章：18篇 阅读：169362
文章存档