Find the length of the longest subarray with sum equal to 0.
Unlock detailed company stats for this questionUpgrade
Optimize the code. Example: array = 12, -1, 1, -5, 1, 4, 2, -2, 4 -> count = 7, <1, 7>.
Format · Phone screening.
Also asked as · Find the longest continuous subarray with sum 0.
Community answers
No answers contributed by the community yet.
Related questions
Given an array, find the length of the longest subarray with sum less than or equal to k.Find the length of the longest subarray with K distinct integers.Find the longest subarray with sum equal to target (return the length only). Example: arr=[1,-1,5,-2,3].Related courses

Course

Course
Course
