LeetCode/cs/minimum-bit-flips-to-convert-number.cs
2024-09-11 21:37:25 +02:00

3 lines
105 B
C#

public class Solution {
public int MinBitFlips(int start, int goal) => int.PopCount(start ^ goal);
}