Last active
June 5, 2016 19:42
-
-
Save jononon/91acc84519d9c54dbdf3 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
| //Returns the number of factors of x, starting at n | |
| public int mystery (int n, int x) { | |
| return (n<x)?((int) n%x==0)+mystery(n+1, x):0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment