About 207,000 results
Open links in new tab
  1. Minimum Size Subarray Sum - LeetCode

    Minimum Size Subarray Sum - Given an array of positive integers nums and a positive integer target, return the minimal length of a subarray whose sum is greater than or equal to target.

  2. Sum of Subarray Minimums - LeetCode

    Sum of Subarray Minimums - Given an array of integers arr, find the sum of min (b), where b ranges over every (contiguous) subarray of arr. Since the answer may be large, return the …

  3. Shortest Subarray with Sum at Least K - LeetCode

    Shortest Subarray with Sum at Least K - Given an integer array nums and an integer k, return the length of the shortest non-empty subarray of nums with a sum of at least k.

  4. Maximum Sum of Distinct Subarrays With Length K - LeetCode

    Iterate through each subarray of size k and keep track of the sum of the subarray and the frequency of each element.

  5. Minimum Positive Sum Subarray - LeetCode

    Your task is to find the minimum sum of a subarray whose size is between l and r (inclusive) and whose sum is greater than 0. Return the minimum sum of such a subarray. If no such subarray …

  6. Maximum and Minimum Sums of at Most Size K Subarrays

    Maximum and Minimum Sums of at Most Size K Subarrays - You are given an integer array nums and a positive integer k. Return the sum of the maximum and minimum elements of all …

  7. 2875. Minimum Size Subarray in Infinite Array - LeetCode

    Minimum Size Subarray in Infinite Array - You are given a 0-indexed array nums and an integer target. A 0-indexed array infinite_nums is generated by infinitely appending the elements of …

  8. Subarray Sum Equals K - LeetCode

    Given an array of integers nums and an integer k, return the total number of subarrays whose sum equals to k. A subarray is a contiguous non-empty sequence of elements within an array.

  9. What are the premium questions? - Help Center

    Nested List Weight Sum Largest BST Subtree Maximum Size Subarray Sum Equals k Number of Connected Components in an Undirected Graph Generalized Abbreviation Shortest Distance …

  10. Sequential Digits - LeetCode

    Can you solve this real interview question? Sequential Digits - An integer has sequential digits if and only if each digit in the number is one more than the previous digit. Return a sorted list of …