This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingA power of two whose single bit sits at an even index.
What this asks
Decide whether a number is a power of four.
Power of two first, then require the single set bit to sit at an even index.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing