#1318 - Minimum Flips to Make a OR b Equal to c
Given three positive integers a, b, and c, return the minimum number of bit flips required so that a OR b === c. A flip changes a single bit from 0 to 1 or 1 to 0 in either a or b.
| Input | Output |
|---|---|
a = 2, b = 6, c = 5 | 3 |
a = 4, b = 2, c = 7 | 1 |
a = 1, b = 2, c = 3 | 0 |