Skip to content

Instantly share code, notes, and snippets.

@mattiasarro
Created March 11, 2012 21:53
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 mattiasarro/2018340 to your computer and use it in GitHub Desktop.
Save mattiasarro/2018340 to your computer and use it in GitHub Desktop.
Trying to implement is_helix?
input: GVGTVPMTDY
expected output: _____hh___
* Like this?
input expected output
GVGTV => 0
VGTVP => 0
GTVPM => 0
TVPMT => 1
VPMTD => 1
PMTDY => 0
* ..or just like this:
input expected output
GVGTV => 0
PMTDY => 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment