Problems
Home
Logout
Single Bit Difference
Given two integers, find if they differ by exactly one bit.
Input Format
Two integers
Output Format
YES or NO
Sample Input
2 3
Sample Output
YES
Try Your Code
Language:
Python
C++
C
Java
Code:
Custom Input (used for "Run Code" only):
Run Code
Submit
Get Boilerplate
← Back to Problems List