Sollicitatievraag bij Divisions Maintenance Group

Check whether an array has any subarray whose sum is 0

Antwoord op sollicitatievraag

Anoniem

16 nov 2023

Coded with prefix sum approach by maintaining the prefix in a list and checking whether the sum is 0 or the list already contains the sum.

Sollicitatievragen voor Divisions Maintenance Group: Check whether an array has any subarray whose sum is 0 | Glassdoor