dsa6 min read
Single Number II — 3-State Bit Counting Every Senior Engineer Knows
LC 137 Single Number II extends XOR cancellation to triplets. Learn the ones/twos state machine and the mod-3 bit count, two approaches every FAANG interviewer expects you to derive from scratch.
Read →