โ† Amazon questions
CodingReported in a candidate post, Jul 2025

Number of bits to flip to convert A to B

Filed under Amazon

Given two non-negative integers A and B, return the number of bits that must be flipped to convert A into B (that is, the number of bit positions at which A and B differ in binary).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.