Write a function that takes an array of integers and returns the length of the longest subarray with sum equal to zero?
Login to Submit
Input: [-5, -3, 7, -2, -7, 1, 6, -7, 1, 4] Output: 9 Input: [-4, 5, -9, -5, 11, 9, -1] Output: 0 Input: [11, 0, -1, 8, 5] Output: 1