Find the number of pairs (a,b) in given set of n integers such that (a&b)=0

Awesome explanation by @sorb1997 . This should work, for smaller constraints. You might want to look into this entire topic to know new concepts.

1 Like