摘要:
``` import java.util.Arrays; / Source : https://oj.leetcode.com/problems/unique paths/ A robot is located at the top left corner of a m x n grid (mark 阅读全文
摘要:
``` / Source : https://oj.leetcode.com/problems/rotate list/ Given a list, rotate the list to the right by k places, where k is non negative. For exam 阅读全文
摘要:
``` import java.util.ArrayList; import java.util.List; /** * Source : https://oj.leetcode.com/problems/permutation-sequence/ * * * The set [1,2,3,…,n] contains a total of n! unique permutations. ... 阅读全文
摘要:
``` import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; /** * Source : https://oj.leetcode.com/problems/merge-intervals/ * * * Given a collec... 阅读全文
摘要:
``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/spiral-matrix-ii/ * * Created by lverpeng on 2017/7/19. * * Given ... 阅读全文
摘要:
``` import java.util.Arrays; /** * Source : https://oj.leetcode.com/problems/spiral-matrix/ * * Created by lverpeng on 2017/7/19. * * Given a matrix of m x n elements (m rows, n columns), return... 阅读全文
摘要:
``` /** * * Source : https://oj.leetcode.com/problems/maximum-subarray/ * * Created by lverpeng on 2017/7/18. * * Find the contiguous subarray within an array (containing at least one number) *... 阅读全文
摘要:
``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/n-queens/ * * Created by lverpeng on 2017/7/18. * * The n-queens p... 阅读全文
摘要:
``` /** * Source : https://oj.leetcode.com/problems/powx-n/ * * Created by lverpeng on 2017/7/18. * * Implement pow(x, n). * */ public class Pow { /** * 实现x^n * 考虑n为负数 * 当n为... 阅读全文
摘要:
``` import java.util.*; /** * * Source : https://oj.leetcode.com/problems/anagrams/ * * Created by lverpeng on 2017/7/18. * * Given an array of strings, group anagrams together. * * For examp... 阅读全文