Whats the corner case

my code isn’t working on the test case 1

@Manvik-Arya-4391661007540658 check for n=6
ans 8 10

hi, if i’m checking that if the no. is even by doing if(N&1==0) the answer is not coming but if i do if(N%2==0) it is working. Why is it so?

@Manvik-Arya-4391661007540658 maybe some inner working use this
else if(!(n&1)) for checking even

@Manvik-Arya-4391661007540658 Is your doubt resolved?

yes thanks…