Skip to content

Instantly share code, notes, and snippets.

@jezinka
Last active July 6, 2018 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/89be6db2e2e153abe89601566f9fdb88 to your computer and use it in GitHub Desktop.
Save jezinka/89be6db2e2e153abe89601566f9fdb88 to your computer and use it in GitHub Desktop.
second
(...)
if next_item is not 0:
window_product = window_product // previous_item * next_item
i += 1
else:
i += 1
window_product = 1
if i + k <= len(large_number_array):
for j in range(i, i + k):
window_product *= large_number_array[j]
else:
break
i += k
(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment