Skip to content

Instantly share code, notes, and snippets.

@makmac213
Forked from markmeriales/get_max_combination
Created January 30, 2013 08:28
Show Gist options
  • Save makmac213/4671645 to your computer and use it in GitHub Desktop.
Save makmac213/4671645 to your computer and use it in GitHub Desktop.
def get_max_combination(length, base=16):
current = base**(length-1)
next = base**(length)
return next-current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment