Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Pow(x, n)

MediumLeetCode 50 ↗

The problem, in one line. Raise a decimal number x to a whole-number power n, where n can be huge and can be negative. LeetCode 50.

The tell. An exponent up to two billion. A loop that multiplies once per unit of the exponent is far too slow, so the exponent must be consumed a bit at a time.

Included with a plan

This solution is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.