My code is running fine on cb ide but test cases are getting failed here...Why?

Check now

still the same…failed all testcases

you have to print ā€œtrueā€ and ā€œfalseā€ as result but you were printing 0 and 1. Change that and then check

i have and also commented that part in the code…see

Submit this and check