|
|
back to boardTest #13 (Java 1.8) Guys, I have no idea why it doesn't pass this test. Any suggestions? public static int getMinutes(int n, int k) { if (k == 1){ return n * 2; } else if ( k >= n) { return 2; } else if (n > k) { return n - k + 2; } return 0; } |
|
|