menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Back To Back SWE

We help software engineers find the job of their dreams with exceptional explanations & teaching resources

Channels
Team

Problem description is not correct in "Count subarrays that sum to k" problem

December 4, 2020 at 8:13am

Problem description is not correct in "Count subarrays that sum to k" problem

December 4, 2020 at 8:13am
The description says that count of unique and contiguous subarrays that sum to k must be returned but Cumulative sum cache solution considers duplicate subarray as well in the result count. Can (bephrem) or the instructor in the video correct me if I am wrong?
No messages yet