2220.cpp (124B)
1 class Solution { 2 public: 3 int minBitFlips(int start, int goal) const { return popcount((unsigned)(start ^ goal)); } 4 };