Created
March 11, 2012 21:53
-
-
Save mattiasarro/2018340 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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