排序:
默认
按更新时间
按访问量

LeetCode||100. Same Tree

Given two binary trees, write a function to check if they are the same or not.Two binary trees are considered the same if they are structurally ident...

2018-05-03 14:53:16

阅读数:9

评论数:0

LeetCode||99. Recover Binary Search Tree

Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Example 1:Input: [1,3,null,null,2] ...

2018-05-03 14:49:26

阅读数:10

评论数:0

LeetCode||98. Validate Binary Search Tree

Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only ...

2018-05-03 14:43:41

阅读数:5

评论数:0

LeetCode||97. Interleaving String

Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca"...

2018-02-02 15:39:04

阅读数:44

评论数:0

LeetCode||96. Unique Binary Search Trees

Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique ...

2018-02-02 15:25:24

阅读数:40

评论数:0

LeetCode||95. Unique Binary Search Trees II

Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program sh...

2018-01-25 14:32:54

阅读数:39

评论数:0

LeetCode||94. Binary Tree Inorder Traversal

Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree [1,null,2,3], 1 \ 2 / ...

2018-01-25 11:41:39

阅读数:36

评论数:0

LeetCode||93. Restore IP Addresses

Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given "25525511135&q...

2018-01-25 11:18:17

阅读数:42

评论数:0

LeetCode||92. Reverse Linked List II

Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = ...

2018-01-24 11:05:03

阅读数:19

评论数:0

LeetCode||91. Decode Ways

A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an...

2018-01-24 10:33:10

阅读数:29

评论数:0

LeetCode||90. Subsets II

Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).Note: The solution set must not conta...

2018-01-19 17:24:36

阅读数:26

评论数:0

LeetCode||89. Gray Code

The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total...

2018-01-17 10:50:39

阅读数:31

评论数:0

LeetCode||88. Merge Sorted Array

Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has enough space (si...

2018-01-17 10:39:46

阅读数:22

评论数:0

LeetCode||87. Scramble String

Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible represen...

2018-01-15 16:18:57

阅读数:41

评论数:0

LeetCode||86. Partition List

Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve ...

2018-01-15 14:13:27

阅读数:24

评论数:0

LeetCode||85. Maximal Rectangle

Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, given the follo...

2018-01-12 15:27:02

阅读数:78

评论数:0

LeetCode||84. Largest Rectangle in Histogram

Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the his...

2018-01-12 14:10:25

阅读数:34

评论数:0

LeetCode||83. Remove Duplicates from Sorted List

Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Giv...

2018-01-10 09:27:36

阅读数:32

评论数:0

LeetCode||82. Remove Duplicates from Sorted List II

Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Give...

2018-01-09 19:23:19

阅读数:25

评论数:0

LeetCode||81. Search in Rotated Sorted Array II

Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? ...

2018-01-05 16:09:00

阅读数:37

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭