Skip to content

Instantly share code, notes, and snippets.

@rainiera
Created September 26, 2016 22:00
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 rainiera/a6a364553b814e1799c52e0f14e02a47 to your computer and use it in GitHub Desktop.
Save rainiera/a6a364553b814e1799c52e0f14e02a47 to your computer and use it in GitHub Desktop.
➜ python git:(master) python longest_unique_substring.py
pwwkewa
[1, 0, 0, 0, 0, 0, 0]
p
[1, 2, 0, 0, 0, 0, 0]
pw
[1, 2, 1, 0, 0, 0, 0]
w
[1, 2, 1, 2, 0, 0, 0]
wk
[1, 2, 1, 2, 3, 0, 0]
wke
[1, 2, 1, 2, 3, 3, 0]
kew
[1, 2, 1, 2, 3, 3, 4]
kewa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment