You are viewing a single comment's thread. Return to all comments →
Bro it's wrong i also did this[JAVA] return p/2 > (n-p)/2 ? (n-p)/2 : p/2;
it fails at test case 26 (only one test case where n == 6 & p == 5)
Seems like cookies are disabled on this browser, please enable them to open this website
Drawing Book
You are viewing a single comment's thread. Return to all comments →
Bro it's wrong i also did this[JAVA] return p/2 > (n-p)/2 ? (n-p)/2 : p/2;
it fails at test case 26 (only one test case where n == 6 & p == 5)