mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 908 - Smallest Range I

Posted on 2019-06-09 | In Algorithm , LeetCode
Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have some a ...
Read more »

[LeetCode] Problem 560 - Subarray Sum Equals K

Posted on 2019-06-07 | In Algorithm , LeetCode
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. ExampleInput:nums = [1,1 ...
Read more »

[LeetCode] Problem 523 - Continuous Subarray Sum

Posted on 2019-06-07 | In Algorithm , LeetCode
Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that ...
Read more »

[LeetCode] Problem 698 - Partition to K Equal Sum Subsets

Posted on 2019-06-07 | In Algorithm , LeetCode
Given an array of integers nums and a positive integer k, find whether it’s possible to divide this array into k non-empty subsets whose sums are all ...
Read more »

[LeetCode] Problem 416 - Partition Equal Subset Sum

Posted on 2019-06-07 | In Algorithm , LeetCode
Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both ...
Read more »

[LeetCode] Problem 388 - Longest Absolute File Path

Posted on 2019-06-06 | In Algorithm , LeetCode
Suppose we abstract our file system by a string in the following manner: The string “dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext” represents: 1234dir s ...
Read more »

[LeetCode] Problem 84 - Largest Rectangle in Histogram

Posted on 2019-06-06 | In Algorithm , LeetCode
Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
Read more »

[LeetCode] Problem 907 - Sum of Subarray Minimums

Posted on 2019-06-06 | In Algorithm , LeetCode
Given an array of integers A, find the sum of min(B), where B ranges over every (contiguous) subarray of A. Since the answer may be large, return the ...
Read more »

[LeetCode] Problem 209 - Minimum Size Subarray Sum

Posted on 2019-06-06 | In Algorithm , LeetCode
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn’t ...
Read more »

[LeetCode] Problem 983 - Minimum Cost For Tickets

Posted on 2019-06-05 | In Algorithm , LeetCode
In a country popular for train travel, you have planned some train travelling one year in advance. The days of the year that you will travel is given ...
Read more »
1…353637…78
mrlonelyjtr

mrlonelyjtr

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

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