About 50 results
Open links in new tab
  1. 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 array.

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

  3. Maximum Subarray Sum With Length Divisible by K - LeetCode

    Nov 27, 2025 · Maximum Subarray Sum With Length Divisible by K - You are given an array of integers nums and an integer k. Return the maximum sum of a subarray of nums, such that the size of the …

  4. 3729. Count Distinct Subarrays Divisible by K in Sorted Array

    Count Distinct Subarrays Divisible by K in Sorted Array - You are given an integer array nums sorted in non-descending order and a positive integer k. A subarray of nums is good if the sum of its elements …

  5. K Divisible Elements Subarrays - LeetCode

    K Divisible Elements Subarrays - Given an integer array nums and two integers k and p, return the number of distinct subarrays, which have at most k elements that are divisible by p.

  6. Make Sum Divisible by P - LeetCode

    Suppose you know the remainder for the sum of the entire array. How does removing a subarray affect that remainder? What remainder does the subarray need to have in order to make the rest of the …

  7. 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 least two, …

  8. Count of Interesting Subarrays - LeetCode

    Count of Interesting Subarrays - You are given a 0-indexed integer array nums, an integer modulo, and an integer k. Your task is to find the count of subarrays that are interesting.

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

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