1
0
Fork 0
mirror of https://gitlab.com/mfocko/LeetCode.git synced 2024-11-13 01:30:28 +01:00
LeetCode/cs/minimum-bit-flips-to-convert-number.cs

4 lines
105 B
C#
Raw Normal View History

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