i don’t get this line:
while (product >= target and left > len(arr)):
why not:
while (product >= target and left > right:
both passes the tests
from my understanding, window should not exceed the right index when we are moving along the array. What am i missing here?
Thanks!