Guided lesson

Fast Exponentiation

Math

See the input

Intermediate

Input for Fast Exponentiation: Square the base and consume exponent bits from right to left.

101101 base 2
101101
Step 1 O(log exponent) time - O(1) space
Guided progression
6% lesson
Step 1 / 2Learner goal
Speech settings Speed 1.0 · Volume 90%

Keyboard: Space play/pause · Arrow keys step · Page Up/Down change sections · R restart