Created
January 8, 2019 19:48
-
-
Save seemcat/33aa187789410434bce128e436b8cb4a to your computer and use it in GitHub Desktop.
c0d3 solved in JS
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
const solution = (num, i = 0) => { | |
if ((num + i) % 7 === 0) return num + i; | |
return solution(num, i + 1); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment