
Asked in Amazon
Given an array of integers, find if there is a contiguous subarray with sum equal to zero.

AnswerBot
2y
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 ...read more
Help your peers!
Add answer anonymously...
Interview Questions Asked to SDE-1 Position at Other Companies
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

