Why the iteration is till 31 in the solution of Hamming Distance?

programming
Tags: #<Tag:0x00007f24258b25e0>

#1

In the Solution approach why are we not iterating till 32 ? Can someone please explain that


#2

Because the numbers are non-negative integers(given in question),32 bit is used to for sign of a number .
32 bit is always 0 for non-negative numbers