• + 1 comment

    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)