### LeetCode代码思路

1 已关注
64篇博文
• #### LeetCode-- Partition List

Given a linked list and a value x, partition it such that all nodes less than x come before nodes gr...

昨天 11:20
35
• #### LeetCode--Maximal Rectangle

Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and...

昨天 10:39
80
• #### LeetCode--Largest Rectangle in Histogram

Given n non-negative integers representing the histogram’s bar height where the width of each bar is...

前天 14:41
22
• #### LeetCode--Remove Duplicates from Sorted List II

Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numb...

3天前 14:41
176
• #### LeetCode-- Remove Duplicates from Sorted List

Given a sorted linked list, delete all duplicates such that each element appear only once.For exampl...

4天前 11:32
41
• #### LeetCode--Search in Rotated Sorted Array II

Follow up for “Search in Rotated Sorted Array”: What if duplicates are allowed?Would this affect th...

5天前 14:45
23
• #### LeetCode--Word Search

Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from le...

2017-10-13 15:51
19
• #### LeetCode--Subsets

Given a set of distinct integers, nums, return all possible subsets.Note: The solution set must not ...

2017-10-12 10:54
27
• #### LeetCode--Combinations

Given two integers n and k, return all possible combinations of k numbers out of 1 … n.For example, ...

2017-10-11 11:12
19
• #### LeetCode--Minimum Window Substring

Given a string S and a string T, find the minimum window in S which will contain all the characters ...

2017-10-11 10:44
159
• #### LeetCode--Sort Colors

Given an array with n objects colored red, white or blue, sort them so that objects of the same colo...

2017-09-28 11:15
34
• #### LeetCode--Search a 2D Matrix

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the follo...

2017-09-27 10:32
47
• #### LeetCode--Set Matrix Zeroes

Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click t...

2017-09-26 12:02
28
• #### LeetCode--Edit Distance

Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2...

2017-09-25 10:59
70
• #### LeetCode--Climbing Stairs

You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1...

2017-09-23 10:41
42
• #### LeetCode--Add Binary

Given two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” R...

2017-09-16 14:18
312
• #### LeetCode--Two Sum

Two Sum Given an array of integers, return indices of the two numbers such that they add up to a sp...

2017-07-10 22:12
82
• #### LeetCode--Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers. The digits are stor...

2017-07-10 23:11
63
• #### LeetCode-- Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters.Examples:Given...

2017-07-10 23:46
90
• #### LeetCode--Median of Two Sorted Arrays

There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the tw...

2017-07-10 23:51
72