随笔分类 -  leetcode

摘要:``` import java.util.Arrays; / Source : https://oj.leetcode.com/problems/next permutation/ Created by lverpeng on 2017/7/13. Implement next permutatio 阅读全文
posted @ 2017-08-25 08:22 lacker 阅读(118) 评论(0) 推荐(0)
摘要:``` import java.util. ; / Source : https://oj.leetcode.com/problems/substring with concatenation of all words/ Created by lverpeng on 2017/7/13. You a 阅读全文
posted @ 2017-08-24 07:56 lacker 阅读(344) 评论(0) 推荐(0)
摘要:``` /** * Source : https://oj.leetcode.com/problems/divide-two-integers/ * * Created by lverpeng on 2017/7/12. * * Divide two integers without using multiplication, division and mod operator. * ... 阅读全文
posted @ 2017-08-23 21:41 lacker 阅读(225) 评论(0) 推荐(0)
摘要:``` / Source : https://oj.leetcode.com/problems/remove element/ Created by lverpeng on 2017/7/12. Given an array and a value, remove all instances of 阅读全文
posted @ 2017-08-23 08:26 lacker 阅读(103) 评论(0) 推荐(0)
摘要:``` / Source : https://oj.leetcode.com/problems/remove duplicates from sorted array ii/ Created by lverpeng on 2017/7/28. Follow up for "Remove Duplic 阅读全文
posted @ 2017-08-22 08:11 lacker 阅读(162) 评论(0) 推荐(0)
摘要:``` import java.util.Arrays; / Source : https://oj.leetcode.com/problems/remove duplicates from sorted array/ Created by lverpeng on 2017/7/12. Given 阅读全文
posted @ 2017-08-21 21:23 lacker 阅读(123) 评论(0) 推荐(0)
摘要:``` / Source : https://oj.leetcode.com/problems/reverse nodes in k group/ Created by lverpeng on 2017/7/12. Given a linked list, reverse the nodes of 阅读全文
posted @ 2017-08-21 08:13 lacker 阅读(225) 评论(0) 推荐(0)
摘要:``` / Source : https://oj.leetcode.com/problems/swap nodes in pairs/ Created by lverpeng on 2017/7/12. Given a linked list, swap every two adjacent no 阅读全文
posted @ 2017-08-19 09:31 lacker 阅读(366) 评论(0) 推荐(0)
摘要:``` import java.util.ArrayList; import java.util.List; import java.util.PriorityQueue; /** * Source : https://oj.leetcode.com/problems/merge-k-sorted-lists/ * * Created by lverpeng on 2017/7/11. ... 阅读全文
posted @ 2017-08-18 08:11 lacker 阅读(200) 评论(0) 推荐(0)
摘要:``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/generate-parentheses/ * * Created by lverpeng on 2017/7/11. * * Gi... 阅读全文
posted @ 2017-08-17 07:52 lacker 阅读(122) 评论(0) 推荐(0)
摘要:``` import java.util.ArrayList; import java.util.List; / Source : https://oj.leetcode.com/problems/merge two sorted lists/ Created by lverpeng on 2017 阅读全文
posted @ 2017-08-16 21:27 lacker 阅读(129) 评论(0) 推荐(0)
摘要:``` import java.util.Stack; / Source : https://oj.leetcode.com/problems/valid parentheses/ Created by lverpeng on 2017/7/11. Given a string containing 阅读全文
posted @ 2017-08-15 23:34 lacker 阅读(152) 评论(0) 推荐(0)
摘要:``` / Source : https://oj.leetcode.com/problems/remove nth node from end of list/ Created by lverpeng on 2017/7/11. Given a linked list, remove the nt 阅读全文
posted @ 2017-08-14 22:18 lacker 阅读(178) 评论(0) 推荐(0)
摘要:``` import java.util.Arrays; import java.util.HashSet; import java.util.Set; /** * Source : https://oj.leetcode.com/problems/4sum/ * * Created by lverpeng on 2017/7/10. * * Given an array S of n... 阅读全文
posted @ 2017-08-13 11:09 lacker 阅读(151) 评论(0) 推荐(0)
摘要:``` import java.util.*; /** * Source : https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/ * * Created by lverpeng on 2017/7/10. * * Given a digit string, return all possible... 阅读全文
posted @ 2017-08-12 14:39 lacker 阅读(182) 评论(0) 推荐(0)
摘要:``` import java.util.*; /** * Source : https://oj.leetcode.com/problems/3sum/ * * Created by lverpeng on 2017/7/10. * * Given an array S of n integers, are there elements a, b, c in S such that ... 阅读全文
posted @ 2017-08-10 23:12 lacker 阅读(117) 评论(0) 推荐(0)
摘要:``` /** * Source : https://oj.leetcode.com/problems/longest-common-prefix/ * * Created by lverpeng on 2017/7/10. * * Write a function to find the longest common prefix string amongst an array of ... 阅读全文
posted @ 2017-08-09 22:39 lacker 阅读(135) 评论(0) 推荐(0)
摘要:``` import java.util.HashMap; import java.util.Map; /** * Source : https://oj.leetcode.com/problems/roman-to-integer/ * * Created by lverpeng on 2017/7/10. * * Given a roman numeral, convert it ... 阅读全文
posted @ 2017-08-09 07:47 lacker 阅读(119) 评论(0) 推荐(0)
摘要:``` /** * Source : https://oj.leetcode.com/problems/integer-to-roman/ * * Created by lverpeng on 2017/7/10. * * Given an integer, convert it to a roman numeral. * * Input is guaranteed to be wi... 阅读全文
posted @ 2017-08-05 22:47 lacker 阅读(138) 评论(0) 推荐(0)
摘要:``` /** * Source : https://oj.leetcode.com/problems/container-with-most-water/ * * Created by lverpeng on 2017/7/7. * * Given n non-negative integers a1, a2, ..., an, where each represents a poin... 阅读全文
posted @ 2017-08-03 23:14 lacker 阅读(141) 评论(0) 推荐(0)