02 2016 档案
摘要:题目链接 "https://leetcode.com/problems/same tree/" 题目原文 Given two binary trees, write a function to check if they are equal or not. Two binary trees are
阅读全文
摘要:题目链接 "https://leetcode.com/problems/recover binary search tree/" 题目原文 Two elements of a binary search tree (BST) are swapped by mistake. Recover the t
阅读全文
摘要:题目链接 "https://leetcode.com/problems/validate binary search tree/" 题目原文 Given a binary tree, determine if it is a valid binary search tree (BST). Assum
阅读全文
摘要:题目链接 "https://leetcode.com/problems/interleaving string/" 题目原文 Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For examp
阅读全文
摘要:题目链接 "https://leetcode.com/problems/unique binary search trees/" 题目原文 Given n, how many structurally unique BST's (binary search trees) that store val
阅读全文
摘要:题目链接 "https://leetcode.com/problems/unique binary search trees ii/" 题目原文 Given n, generate all structurally unique BST's (binary search trees) that st
阅读全文
摘要:题目链接 "https://leetcode.com/problems/binary tree inorder traversal/" 题目原文 Given a binary tree, return the inorder traversal of its nodes' values. For e
阅读全文
摘要:题目链接 "https://leetcode.com/problems/restore ip addresses/" 题目原文 Given a string containing only digits, restore it by returning all possible valid IP a
阅读全文
摘要:题目链接 "https://leetcode.com/problems/reverse linked list ii/" 题目原文 Reverse a linked list from position m to n. Do it in place and in one pass. For exam
阅读全文
摘要:题目链接 "https://leetcode.com/problems/decode ways/" 题目原文 A message containing letters from is being encoded to numbers using the following mapping: 'A'
阅读全文
摘要:题目链接 "https://leetcode.com/problems/subsets ii/" 题目原文 Given a collection of integers that might contain duplicates, nums, return all possible subsets.
阅读全文
摘要:题目链接 "https://leetcode.com/problems/gray code/" 题目原文 The gray code is a binary numeral system where two successive values differ in only one bit. Give
阅读全文
摘要:题目链接 "https://leetcode.com/problems/merge sorted array/" 题目原文 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted ar
阅读全文
摘要:题目链接 "https://leetcode.com/problems/scramble string/" 题目原文 We say that "rgtae" is a scrambled string of "great". Given two strings s1 and s2 of the sa
阅读全文
摘要:题目链接 "https://leetcode.com/problems/partition list/" 题目原文 Given a linked list and a value x, partition it such that all nodes less than x come before
阅读全文
摘要:题目链接 "https://leetcode.com/problems/maximal rectangle/" 题目原文 Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing a
阅读全文
摘要:题目链接 "https://leetcode.com/problems/largest rectangle in histogram/" 题目原文 Given n non negative integers representing the histogram's bar height where
阅读全文
摘要:题目链接 "https://leetcode.com/problems/remove duplicates from sorted list/" 题目原文 Given a sorted linked list, delete all duplicates such that each element
阅读全文
摘要:题目链接 "https://leetcode.com/problems/remove duplicates from sorted list ii/" 题目原文 Given a sorted linked list, delete all nodes that have duplicate numb
阅读全文
摘要:题目链接 "https://leetcode.com/problems/search in rotated sorted array ii/" 题目原文 Follow up for "Search in Rotated Sorted Array": What if duplicates are al
阅读全文

浙公网安备 33010602011771号