You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated prefix_sum.py with the following changes:-
1. get_sum: Added an explicit check for invalid ranges and index out-of-bounds cases.
2. contains_sum: Fixed a logic issue where the target sum equal to the first prefix sum wouldn't be detected.
3. Updated the space complexity note in get_sum.
0 commit comments