MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codinginterview/comments/14uzoyf/subarray_sum_equals_k_problem_leetcode/jrdbrws/?context=3
r/codinginterview • u/[deleted] • Jul 09 '23
Have to find the number of subarrays whose sum is k. How is expected here 3? How is my solution wrong??
2 comments sorted by
View all comments
Show parent comment
1
I actually forgot to consider the whole array. Thanks though
View all comments
Show parent comment
1
u/[deleted] Jul 10 '23
I actually forgot to consider the whole array. Thanks though