mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 448 - Find All Numbers Disappeared in an Array

Posted on 2019-06-25 | In Algorithm , LeetCode
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] ...
Read more »

[LeetCode] Problem 442 - Find All Duplicates in an Array

Posted on 2019-06-25 | In Algorithm , LeetCode
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi ...
Read more »

[LeetCode] Problem 268 - Missing Number

Posted on 2019-06-24 | In Algorithm , LeetCode
Given an array containing n distinct numbers taken from 0, 1, 2, …, n, find the one that is missing from the array. ExampleNo.1Input: [3,0,1] Output: ...
Read more »

[LeetCode] Problem 287 - Find the Duplicate Number

Posted on 2019-06-24 | In Algorithm , LeetCode
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. ...
Read more »

[LeetCode] Problem 220 - Contains Duplicate III

Posted on 2019-06-22 | In Algorithm , LeetCode
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
Read more »

[LeetCode] Problem 219 - Contains Duplicate II

Posted on 2019-06-22 | In Algorithm , LeetCode
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the ...
Read more »

[LeetCode] Problem 217 - Contains Duplicate

Posted on 2019-06-22 | In Algorithm , LeetCode
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr ...
Read more »

[LeetCode] Problem 162 - Find Peak Element

Posted on 2019-06-20 | In Algorithm , LeetCode
A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and return ...
Read more »

[LeetCode] Problem 632 - Smallest Range

Posted on 2019-06-09 | In Algorithm , LeetCode
You have k lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k lists. We define ...
Read more »

[LeetCode] Problem 910 - Smallest Range II

Posted on 2019-06-09 | In Algorithm , LeetCode
Given an array A of integers, for each integer A[i] we need to choose either x = -K or x = K, and add x to A[i] (only once). After this process, we ha ...
Read more »
1…343536…78
mrlonelyjtr

mrlonelyjtr

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

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