Skip to content

Instantly share code, notes, and snippets.

@dariomx
Created November 20, 2020 21:38
Show Gist options
  • Select an option

  • Save dariomx/7eae4f1060c01f29e842bff43295bb93 to your computer and use it in GitHub Desktop.

Select an option

Save dariomx/7eae4f1060c01f29e842bff43295bb93 to your computer and use it in GitHub Desktop.
def ackermann(m,n):
if m == 0:
return (n + 1)
elif n == 0:
return ackermann(m - 1, 1)
else:
return ackermann(m - 1, ackermann(m, n - 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment