n = n & ( n - 1 ) ; clear the least significant bit set
count ++ ; } return count ; } public static void main ( String [ ] args ) { int [ ] arr = { 5 , 10 } ; int ans = sumBitDiff ( arr ) ; System . out . println ( ans ) ; } }