3 ms·
The point is that each character represents a single bit in the mask, so it's easy to count the whole number of characters using popcount. If you XOR in the cha
by dahfizz 4y ago
The point is that each character represents a single bit in the mask, so it's easy to count the whole number of characters using popcount. If you XOR in the characters directly you can no longer easily count which characters are in the set.