上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 25 下一页
摘要: ``` import java.util.Stack; /** * * Source : https://oj.leetcode.com/problems/largest-rectangle-in-histogram/ * * * Given n non-negative integers representing the histogram's bar height where th... 阅读全文
posted @ 2017-10-29 22:56 lacker 阅读(112) 评论(0) 推荐(0) 编辑
摘要: ``` / Source : https://oj.leetcode.com/problems/remove duplicates from sorted list/ Given a sorted linked list, delete all duplicates such that each e 阅读全文
posted @ 2017-10-27 08:33 lacker 阅读(130) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/word-search/ * * * Given a 2D board and a word, find if the word ex... 阅读全文
posted @ 2017-10-27 08:31 lacker 阅读(126) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/subsets/ * * * Given a set of distinct integers, S, return all poss... 阅读全文
posted @ 2017-10-27 00:14 lacker 阅读(117) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/subsets-ii/ * * * Given a collection of integers that might contain... 阅读全文
posted @ 2017-10-27 00:14 lacker 阅读(211) 评论(0) 推荐(0) 编辑
摘要: ```java import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/combinations/ * * * Given two integers n and k, return all poss... 阅读全文
posted @ 2017-10-26 08:25 lacker 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.HashMap; import java.util.Map; /** * * Source : https://oj.leetcode.com/problems/minimum-window-substring/ * * * Given a string S and a string T, find the minimum window in ... 阅读全文
posted @ 2017-10-26 08:24 lacker 阅读(198) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.Arrays; / Source : https://oj.leetcode.com/problems/sort colors/ Given an array with n objects colored red, white or blue, sort t 阅读全文
posted @ 2017-10-25 21:42 lacker 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ``` /** * Source : https://oj.leetcode.com/problems/search-a-2d-matrix/ * * * Write an efficient algorithm that searches for a value in an m x n matrix. * This matrix has the following properties... 阅读全文
posted @ 2017-10-25 08:25 lacker 阅读(142) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.Arrays; / Source : https://oj.leetcode.com/problems/set matrix zeroes/ Given a m x n matrix, if an element is 0, set its entire r 阅读全文
posted @ 2017-10-24 23:25 lacker 阅读(167) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 25 下一页