Subarray Sum Equals K (Leetcode 560) – From Brute Force to HashMap When I saw this problem for the first time, honestly my mind just went:“Okay… subarray sum… let’s check all subarrays!” 😅That’s the brute force approach. Later I found the prefix sum...
prefix-sum.hashnode.dev3 min readNo responses yet.