Skip to content

Files

Latest commit

258acab · Jun 7, 2019

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 7, 2019
Jun 7, 2019

Implement integer exponentiation. That is, implement the pow(x, y) function, where x and y are integers and returns x^y.

Do this faster than the naive method of repeated multiplication.

For example, pow(2, 10) should return 1024.