Challenges • Asked about 4 years ago by Anonymous
the explanation for the set-based solution is very hard to understand.
Link to problem: Contiguous Subarray Sum.
What about it is hard to understand?
Apologies for the confusing explanation. We've gone ahead and re-written/created the solution, and included a video solution to help with clarity.
please explain amazon interview coding questions i am crying so much.
This could be helpful as well -
https://en.wikipedia.org/wiki/Maximumsubarrayproblem
https://www.interviewbit.com/blog/maximum-subarray-sum/
https://towardsdatascience.com/maximum-subarray-problem-and-kadanes-algorithm-4cb1ce91be72
Thanks for sharing, Ayush!