87. Scramble String 题目 Given a string s1, we may represent it as a binary tree by partitioning it to two non-e…
标签:LeetCode题目解答
88. Merge Sorted Array
88. Merge Sorted Array 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorte…
91. Decode Ways
91. Decode Ways 题目 A message containing letters from A-Z is being encoded to numbers using the following mappi…
LeetCode --- 89. Gray Code
LeetCode — 89. Gray Code 题目 The gray code is a binary numeral system where two successive values differ …
90. Subsets II
90. Subsets II 题目 Given a collection of integers that might contain duplicates, nums, return all possible subs…
99. Recover Binary Search Tree
99. Recover Binary Search Tree 题目 Two elements of a binary search tree (BST) are swapped by mistake. Recover t…
92. Reverse Linked List II
92. Reverse Linked List II 题目 Reverse a linked list from position m to n. Do it in-place and in one-pass. For …
98. Validate Binary Search Tree
98. Validate Binary Search Tree 题目 Given a binary tree, determine if it is a valid binary search tree (BST). A…
96. Unique Binary Search Trees
96. Unique Binary Search Trees 题目 Given n, how many structurally unique BST's (binary search trees) that store…
97. Interleaving String
97. Interleaving String 题目 Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For e…
93. Restore IP Addresses
93. Restore IP Addresses 题目 Given a string containing only digits, restore it by returning all possible valid …
236. Lowest Common Ancestor of a Binary Tree
236. Lowest Common Ancestor of a Binary Tree 题目 Given a binary tree, find the lowest common ancestor (LCA) of …