Can you pls read this code snippet and solve my doubt, everything is written inside.
Bitmasking doubt
It’s been 2 days pls reply
if(((a[i]&1)==0 and (a[i+1]&1)==1) || ( (a[i]&1)==1 and (a[i+1]&1)==0 ))
Try adding an extra bracket it works fine!!
And I am not TA
TAs are terrible here, thanks man. I will keep myself away from doing bitmasking tricks in the questions i do
No No dont limit yourself try a lot of things which you can think atleast I do the same and search if you get error in gfg or stack overflow. This forum is terrible in terms of reply!!