GENERAL ELECTRIC AVIATION | Off-Campus | Online Assessment(2023)
Question · Posted Jun 2026
Problem: Minimum Flips to Make a OR b Equal to c Problem Statement Given three positive integers a, b, and c, determine the minimum number of bit flips required in a and b so that: (a OR b) == c A bit flip changes a 0 to 1 or a 1 to 0. Return the minimum number of flips required. Example Input a = 2 b = 6 c = 5 Output 3 Explanation Flip the necessary bits in a ...
The full answer & interview discussion are available to premium members.
Log in Create a free account