Last active
July 21, 2016 15:14
-
-
Save tkfx/82c8508a7655dcfd522a7202e0bf5d57 to your computer and use it in GitHub Desktop.
This file contains 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
private static int isOpt(int x, int y) { | |
int veryHardCalculation = 0; | |
if (x < y) { | |
// this would not require a jump | |
veryHardCalculation = y * 1000 + x; | |
return veryHardCalculation; | |
} else { | |
veryHardCalculation = x * 1000 + y; | |
return veryHardCalculation; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment