Zero sum interval

Dessign the function @intervalo_suma_cero(f, i)@ that, given a list f of
integers and an integer i such that 0 ≤ i < len(f), returns the smallest
value j ≥ i such that the sum of the elements in f from position i to
position j is zero. If there is no such value, it will return -1.

Sample session

Problem information

Author: InfBesos

Generation: 2026-01-25T14:59:46.814Z

© Jutge.org, 2006–2026.
https://jutge.org
