cs: add «2220. Minimum Bit Flips to Convert Number»

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-09-11 21:37:25 +02:00
parent 6531d1a35f
commit 6dbeb7ce10
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8

View file

@ -0,0 +1,3 @@
public class Solution {
public int MinBitFlips(int start, int goal) => int.PopCount(start ^ goal);
}