Problem Description

Task: compute a^b using fast exponentiation (b >= 0).

Input Format

Java method

Output Format

Return value

Constraints

Use long to reduce overflow risk.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next