Skip to content

Instantly share code, notes, and snippets.

@markmeriales
Created November 15, 2012 02:55
Show Gist options
  • Save markmeriales/4076360 to your computer and use it in GitHub Desktop.
Save markmeriales/4076360 to your computer and use it in GitHub Desktop.
Returns the max combination by character length and base
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