Objective
Implement a function that raises base to the power exp by recursion, with two base cases: an exp of 0 gives 1, and a negative exp gives -1.
Steps
$ power(2, 10)
1024
$ power(-2, 5)
-32
$ power(7, 0)
1
$ power(3, -1)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Objective
Implement a function that raises base to the power exp by recursion, with two base cases: an exp of 0 gives 1, and a negative exp gives -1.
Steps
$ power(2, 10)
1024
$ power(-2, 5)
-32
$ power(7, 0)
1
$ power(3, -1)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code