Shikhar·Jul 24Subarray sum equal to KThe first approach that comes to mind is to generate every subarray in O(n²) and, for each subarray, calculate its sum in O(n). If the sum…
Minoltan Issack·Apr 7How a Garage Rope Taught Me the Most Important LeetCode Pattern: Subarray SumThe O(n) trick behind one of the most-asked coding interview questions, explained with a rope and a notebook
Neha Gupta·Oct 10, 2025Day 2 of 60 Days of DSA: Subarray with Given Sum & Subarray with Least AverageLearn how to calculate subarray sums problems — from brute force to prefix sums.
InDev SimplifiedbyNeha Gupta·Aug 29Day 1 of 60 Days of DSA: Subarray Sums & Range QueriesLearn how to calculate subarray sums efficiently — from brute force to prefix sums.A response icon1
Aditya Sharma·Jul 3, 2025Subarray Sum Equals KThe goal is to determine how many contiguous subarrays within the given array nums have a sum equal to k.