随笔分类 - leetcode
摘要:``` import java.util.Arrays; / Source : https://oj.leetcode.com/problems/next permutation/ Created by lverpeng on 2017/7/13. Implement next permutatio
阅读全文
摘要:``` import java.util. ; / Source : https://oj.leetcode.com/problems/substring with concatenation of all words/ Created by lverpeng on 2017/7/13. You a
阅读全文
摘要:``` /** * 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. * ...
阅读全文
摘要:``` / 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
阅读全文
摘要:``` / Source : https://oj.leetcode.com/problems/remove duplicates from sorted array ii/ Created by lverpeng on 2017/7/28. Follow up for "Remove Duplic
阅读全文
摘要:``` import java.util.Arrays; / Source : https://oj.leetcode.com/problems/remove duplicates from sorted array/ Created by lverpeng on 2017/7/12. Given
阅读全文
摘要:``` / 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
阅读全文
摘要:``` / 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
阅读全文
摘要:``` 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. ...
阅读全文
摘要:``` 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...
阅读全文
摘要:``` import java.util.ArrayList; import java.util.List; / Source : https://oj.leetcode.com/problems/merge two sorted lists/ Created by lverpeng on 2017
阅读全文
摘要:``` import java.util.Stack; / Source : https://oj.leetcode.com/problems/valid parentheses/ Created by lverpeng on 2017/7/11. Given a string containing
阅读全文
摘要:``` / 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
阅读全文
摘要:``` 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...
阅读全文
摘要:``` 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...
阅读全文
摘要:``` 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 ...
阅读全文
摘要:``` /** * 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 ...
阅读全文
摘要:``` 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 ...
阅读全文
摘要:``` /** * 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...
阅读全文
摘要:``` /** * 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...
阅读全文

浙公网安备 33010602011771号