Beats 100% || Single line solution || Bit Manipulation
Code
![Screenshot 2025-03-15 at 8.02.31 PM.png](https://assets.leetcode.com/users/images/5d832887-bedb-40fb-bb7d-66cdbcf3abee_1742049238.4734526.png)


# Code
```python3 []
class Solution:
    def minChanges(self, n: int, k: int) -> int:
        return -1 if k & ~n else (n & ~k).bit_count()

```
['Bit Manipulation', 'Python3']