Question bank › Bit Manipulation
Dsa Bit Manipulation Easy

Single Bit Flip

You are given two integers A and B. Your task is to determine if it is possible to convert A into B by flipping exactly one bit in A. Print 'YES' if it is possible, 'NO' otherwise. Example: Input: 5 7 Output: YES

Key concepts

bit_manipulationflip

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.