码迷,mamicode.com
首页 >  
搜索关键字:leedcode    ( 225个结果
[leedcode 85] Maximal Rectangle
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.public class Solution { public...
分类:其他好文   时间:2015-07-15 22:39:04    阅读次数:270
[leedcode 84] Largest Rectangle in Histogram
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:其他好文   时间:2015-07-15 20:55:22    阅读次数:105
[leedcode 82] Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2015-07-15 19:00:17    阅读次数:112
[leedcode 83] Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:其他好文   时间:2015-07-15 13:01:20    阅读次数:132
[leedcode 81] Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to...
分类:其他好文   时间:2015-07-15 12:58:41    阅读次数:94
[leedcode 78] Subsets
Given a set of distinct integers,nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not...
分类:其他好文   时间:2015-07-14 22:18:04    阅读次数:99
[leedcode 77] Combinations
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:其他好文   时间:2015-07-14 20:25:31    阅读次数:98
[leedcode 76] Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECODEBA...
分类:Windows程序   时间:2015-07-14 20:19:34    阅读次数:157
[leedcode 75] Sort Colors
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:其他好文   时间:2015-07-14 20:17:48    阅读次数:115
[leedcode 73] Set Matrix Zeroes
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.public class Solution { public void setZeroes(int[][] matr...
分类:其他好文   时间:2015-07-14 19:51:10    阅读次数:105
225条   上一页 1 ... 14 15 16 17 18 ... 23 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!