dsa1 min read
Single Number II — 3-State Bit Counting
Every element appears 3 times except one. Track bit counts mod 3: ones and twos bitmasks, or count each bit position.
Read →
webcoderspeed.com
1 articles
Every element appears 3 times except one. Track bit counts mod 3: ones and twos bitmasks, or count each bit position.