Skip to content

Instantly share code, notes, and snippets.

@jezinka

jezinka/window_sliding_product.py Secret

Last active Jul 6, 2018
Embed
What would you like to do?
(...)
while 0 in large_number_array[i:i + k]:
zero_index = large_number_array[i:i + k].index(0)
i += zero_index + 1
(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment