Skip to content

Instantly share code, notes, and snippets.

def get_linear_subseries(arr):
# Start and endpoint tracking variables
start_index = 0
end_index = 0
broken = True # Did the series get interrupted?
subseries = []
for x in range(len(arr)):
# If the series got interrupted then use x instead of x-1
comp_point = x if broken else x-1
@andpe
andpe / keybase.md
Last active December 2, 2016 11:11

Keybase proof

I hereby claim:

  • I am andpe on github.
  • I am andpe (https://keybase.io/andpe) on keybase.
  • I have a public key whose fingerprint is AE3D 0D5D 3C93 18DC BEFB 0548 5DED E226 B367 7517

To claim this, I am signing this object: