Skip to content

Instantly share code, notes, and snippets.

@tkfx
Last active July 21, 2016 15:14
Show Gist options
  • Save tkfx/7163997a5c78c01dbb6c00bffd7459e2 to your computer and use it in GitHub Desktop.
Save tkfx/7163997a5c78c01dbb6c00bffd7459e2 to your computer and use it in GitHub Desktop.
private static int isOpt(int x, int y) {
int veryHardCalculation = 0;
if (x >= y) {
veryHardCalculation = x * 1000 + y;
} else {
veryHardCalculation = y * 1000 + x;
}
return veryHardCalculation;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment