mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 165 - Compare Version Numbers

Posted on 2019-04-01 | In Algorithm , LeetCode
Compare two version numbers version1 and version2.If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may ...
Read more »

[LeetCode] Problem 445 - Add Two Numbers II

Posted on 2019-03-31 | In Algorithm , LeetCode
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai ...
Read more »

[LeetCode] Problem 347 - Top K Frequent Elements

Posted on 2019-03-31 | In Algorithm , LeetCode
Given a non-empty array of integers, return the k most frequent elements. ExampleNo.1Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] No.2Input: nums ...
Read more »

[LeetCode] Problem 31 - Next Permutation

Posted on 2019-03-31 | In Algorithm , LeetCode
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possib ...
Read more »

[LeetCode] Problem 131 - Palindrome Partitioning

Posted on 2019-03-30 | In Algorithm , LeetCode
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Example:In ...
Read more »

[LeetCode] Problem 90 - Subsets II

Posted on 2019-03-30 | In Algorithm , LeetCode
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). NoteThe solution set must not contain ...
Read more »

[LeetCode] Problem 78 - Subsets

Posted on 2019-03-30 | In Algorithm , LeetCode
Given a set of distinct integers, nums, return all possible subsets (the power set). NoteThe solution set must not contain duplicate subsets. ExampleI ...
Read more »

[LeetCode] Problem 47 - Permutations II

Posted on 2019-03-30 | In Algorithm , LeetCode
Given a collection of numbers that might contain duplicates, return all possible unique permutations. ExampleInput: [1,1,2] Output: 12345[ [1,1,2], ...
Read more »

[LeetCode] Problem 46 - Permutations

Posted on 2019-03-30 | In Algorithm , LeetCode
Given a collection of distinct integers, return all possible permutations. ExampleInput: [1,2,3] Output: 12345678[ [1,2,3], [1,3,2], [2,1,3], [2,3 ...
Read more »

[LeetCode] Problem 641 - Design Circular Deque

Posted on 2019-03-30 | In Algorithm , LeetCode
Design your implementation of the circular double-ended queue (deque). Your implementation should support following operations: MyCircularDeque(k): Co ...
Read more »
1…495051…78
mrlonelyjtr

mrlonelyjtr

间歇性踌躇满志,持续性混吃等死

780 posts
18 categories
18 tags
Github
© 2020 mrlonelyjtr
Powered by Hexo
Theme - NexT.Pisces