Created
February 22, 2018 10:47
-
-
Save mirsahib/c907ac5ef6f12b10741df7aae14edf49 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
int faulty_ball(int n){ | |
if(n==8){ | |
return 3; | |
}else{ | |
return 1+(n-n/2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment