Output for the question

What do we need to return for the output as returning boolean value and outputting it results in 0/1. So do we need to print “true” “false” or what? My code got submitted on leetcode.

hello @Vishal_234
check sample output and output format mentioned in the question.

if they are printing true/false then u should also print same.

otherwise print 0/1

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.