About 251,000 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. 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 …

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

  6. Subarray Sum Equals K - Discuss - LeetCode

    Jan 29, 2024 · Use a hashmap (sum_map) to store the cumulative sum and the count of occurrences of each sum. Whenever the difference between the current sum and k is found in …

  7. Meta Variants for Subarray Sum Equals K (LC560) - LeetCode

    Feb 11, 2025 · I got another solution up for Leetcode 560 Subarray Sum Equals K as well as 2 very common variants Meta asks. NOTE: I’ve never asked this before but to deeply …

  8. Flip Columns For Maximum Number of Equal Rows - LeetCode

    Nov 22, 2024 · Flip Columns For Maximum Number of Equal Rows - You are given an m x n binary matrix matrix. You can choose any number of columns in the matrix and flip every cell …