mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 83 - Remove Duplicates from Sorted List

Posted on 2017-10-12 | In Algorithm , LeetCode
Given a sorted linked list, delete all duplicates such that each element appear only once. ExampleNo.1Input: 1->1->2 Output: 1->2 No.2Input: ...
Read more »

[LeetCode] Problem 61 - Rotate List

Posted on 2017-10-11 | In Algorithm , LeetCode
Given a linked list, rotate the list to the right by k places, where k is non-negative. ExampleNo.1Input: 1->2->3->4->5->NULL, k = 2 Ou ...
Read more »

[LeetCode] Problem 19 - Remove Nth Node From End of List

Posted on 2017-10-11 | In Algorithm , LeetCode
Given a linked list, remove the nth node from the end of list and return its head. ExampleGiven linked list: 1->2->3->4->5, and n = 2. Aft ...
Read more »

[LeetCode] Problem 213 - House Robber II

Posted on 2017-09-27 | In Algorithm , LeetCode
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are ar ...
Read more »

[LeetCode] Problem 198 - House Robber

Posted on 2017-09-27 | In Algorithm , LeetCode
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo ...
Read more »

[LeetCode] Problem 154 - Find Minimum in Rotated Sorted Array II

Posted on 2017-09-26 | In Algorithm , LeetCode
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). ...
Read more »

[LeetCode] Problem 153 - Find Minimum in Rotated Sorted Array

Posted on 2017-09-26 | In Algorithm , LeetCode
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find ...
Read more »

[LeetCode] Problem 35 - Search Insert Position

Posted on 2017-09-26 | In Algorithm , LeetCode
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or ...
Read more »

[LeetCode] Problem 152 - Maximum Product Subarray

Posted on 2017-09-25 | In Algorithm , LeetCode
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. ExampleNo.1I ...
Read more »

[LeetCode] Problem 53 - Maximum Subarray

Posted on 2017-09-25 | In Algorithm , LeetCode
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. ExampleInput: ...
Read more »
1…666768…78
mrlonelyjtr

mrlonelyjtr

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

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