About 46,200 results
Open links in new tab
  1. Subarray Sum Equals K - LeetCode

    Subarray Sum Equals K - 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 …

  2. Make K-Subarray Sums Equal - LeetCode

    Return the minimum number of operations such that the sum of each subarray of length k is equal. A subarray is a contiguous part of the array. Example 1: Input: arr = [1,4,1,3], k = 2 …

  3. Continuous Subarray Sum - LeetCode

    Continuous Subarray Sum - Given an integer array nums and an integer k, return true if nums has a good subarray or false otherwise. A good subarray is a subarray where: * its length is at …

  4. Binary Subarrays With Sum - LeetCode

    Binary Subarrays With Sum - Given a binary array nums and an integer goal, return the number of non-empty subarrays with a sum goal. A subarray is a contiguous part of the array.

  5. 862. 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.

  6. Maximum Size Subarray Sum Equals k - LeetCode

    Can you solve this real interview question? Maximum Size Subarray Sum Equals k - Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and …

  7. Subarray Sums Divisible by K - LeetCode

    Subarray Sums Divisible by K - Given an integer array nums and an integer k, return the number of non-empty subarrays that have a sum divisible by k. A subarray is a contiguous part of an …

  8. 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.

  9. 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.

  10. Find the K-Sum of an Array - LeetCode

    You can choose any subsequence of the array and sum all of its elements together. We define the K-Sum of the array as the kth largest subsequence sum that can be obtained (not necessarily …