i
Amazon
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Find all contiguous subarrays in an array with sum equal to zero.
Use a hash table to store the sum of subarrays and their ending index.
Traverse the array and calculate the sum of subarrays.
If the sum is zero or already exists in the hash table, print the subarray.
Time complexity: O(n), Space complexity: O(n).
Top trending discussions
based on 1 review
Rating in categories
Customer Service Associate
4.1k
salaries
| ₹0.6 L/yr - ₹6 L/yr |
Transaction Risk Investigator
3.1k
salaries
| ₹2.3 L/yr - ₹6.5 L/yr |
Associate
2.8k
salaries
| ₹0.8 L/yr - ₹6.7 L/yr |
Senior Associate
2.4k
salaries
| ₹2 L/yr - ₹10 L/yr |
Software Development Engineer
2k
salaries
| ₹19 L/yr - ₹33 L/yr |
Flipkart
TCS
Netflix