mirror of
https://gitlab.com/mfocko/LeetCode.git
synced 2024-11-10 00:09:06 +01:00
cs: add «2220. Minimum Bit Flips to Convert Number»
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
6531d1a35f
commit
6dbeb7ce10
1 changed files with 3 additions and 0 deletions
3
cs/minimum-bit-flips-to-convert-number.cs
Normal file
3
cs/minimum-bit-flips-to-convert-number.cs
Normal file
|
@ -0,0 +1,3 @@
|
|||
public class Solution {
|
||||
public int MinBitFlips(int start, int goal) => int.PopCount(start ^ goal);
|
||||
}
|
Loading…
Reference in a new issue