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

Tags: #<Tag:0x00007f24258b25e0>


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


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