摘要:
``` 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... 阅读全文
摘要:
``` / Source : https://oj.leetcode.com/problems/remove duplicates from sorted list/ Given a sorted linked list, delete all duplicates such that each e 阅读全文
摘要:
``` 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... 阅读全文
摘要:
``` 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... 阅读全文
摘要:
``` 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... 阅读全文
摘要:
```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... 阅读全文
摘要:
``` 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 ... 阅读全文
摘要:
``` 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 阅读全文
摘要:
``` /** * 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... 阅读全文
摘要:
``` 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 阅读全文