Skip to content

Instantly share code, notes, and snippets.

@seemcat
Created January 8, 2019 19:48
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 seemcat/33aa187789410434bce128e436b8cb4a to your computer and use it in GitHub Desktop.
Save seemcat/33aa187789410434bce128e436b8cb4a to your computer and use it in GitHub Desktop.
c0d3 solved in JS
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