Skip to content

Instantly share code, notes, and snippets.

View sheedpro's full-sized avatar
💭
I may be slow to respond.

sheedpro

💭
I may be slow to respond.
View GitHub Profile
import sys
def power_of_four(n):
def pow_recursive(base, exp):
if exp == 0:
return 1
if exp == 1:
return base
half = pow_recursive(base, exp // 2)
if exp % 2 == 0: