# 分类：LeetCode题目解答汇总

## LeetCode | Generate Parentheses（生成括号）

Given n pairs of parentheses, write a function to generate all combinations of well-formed parenthes…

## LeetCode | Interleaving String（交叉字符串）

Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and&n…

## LeetCode | Valid Parentheses（括号匹配）

Given a string containing just the characters '(', ')', '{', '}', '[' and '…

## LeetCode | Candy（分糖果问题）

There are N children standing in a line. Each child is assigned a rating value. You are giving candi…

## LeetCode | Construct Binary Tree from Preorder and Inorder Traversal

Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume that duplicate…

## LeetCode | Search for a Range（查找数据出现的范围）

Given a sorted array of integers, find the starting and ending position of a given target value. Your algorith…

Given two words (start and end), and a dictionary, find the length of shortest transformation sequen…

## LeetCode | Multiply Strings（字符串相乘）

Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers …

## LeetCode | Unique Paths（唯一路径）

A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in t…

## LeetCode | Binary Tree Level Order Traversal（二叉树层序遍历）

Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to …

## LeetCode | Construct Binary Tree from Inorder and Postorder Traversal

Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicat…

## LeetCode | Permutation Sequence（找到全排列中的第k个排列）

The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of …