上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页
摘要: ``` 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 阅读全文
posted @ 2017-09-30 07:45 lacker 阅读(124) 评论(0) 推荐(0) 编辑
摘要: ``` / 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 阅读全文
posted @ 2017-09-27 08:00 lacker 阅读(128) 评论(0) 推荐(0) 编辑
摘要: ``` 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. ... 阅读全文
posted @ 2017-09-26 07:54 lacker 阅读(139) 评论(0) 推荐(0) 编辑
摘要: ``` 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... 阅读全文
posted @ 2017-09-25 08:07 lacker 阅读(126) 评论(0) 推荐(0) 编辑
摘要: ``` 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 ... 阅读全文
posted @ 2017-09-18 08:04 lacker 阅读(138) 评论(0) 推荐(0) 编辑
摘要: ``` 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... 阅读全文
posted @ 2017-09-17 10:13 lacker 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ``` /** * * 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) *... 阅读全文
posted @ 2017-09-15 08:01 lacker 阅读(128) 评论(0) 推荐(0) 编辑
摘要: ``` 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... 阅读全文
posted @ 2017-09-14 08:01 lacker 阅读(120) 评论(0) 推荐(0) 编辑
摘要: ``` /** * 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为... 阅读全文
posted @ 2017-09-13 08:01 lacker 阅读(125) 评论(0) 推荐(0) 编辑
摘要: ``` 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... 阅读全文
posted @ 2017-09-11 23:05 lacker 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页