Created
February 6, 2014 05:12
-
-
Save jdjkelly/8838705 to your computer and use it in GitHub Desktop.
011314_challenge_148_easy_combination_lock
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
var input = [5, 1, 2, 3], | |
digit_count = input.shift() | |
digit_count * 4 + input[0] * 2 - input[1] * 2 + input[2] |
Author
jdjkelly
commented
Feb 6, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment