Sir doubt in this algorithm

@26.52 in line Number 28 what if we write condition
if((mask>>i)&1==0) then also this algorithm will work fine right?? or not??

hello @tejasddongare
yeah it should work fine

but sir it showing wrong answer why?? but if write this condition instead

mask&(1<<i) than it works fine why??

both will work,try to add brackets after taking &

sir can u please check this code i need help plz tell mee

check now->