Given two non-negative integers a and b, find if their binary representations differ at exactly one bit position.Examples: Input: a = 13, b = 9Output: trueExplanation: The binary representations of 13 (1101) and 9 (1001) differ at exactly one bit position.Input: a = 15, b = 8Output: falseExplanation: The binary representations of 15 (1111)
This is a summary. For the full story, refer to the original source. Public of India presents verified citizen-relevant reporting.