Problem of the Day
A new programming or logic puzzle every Mon-Fri

Password Combinations

Your objective today, should you choose to accept it, is to create a program that returns the amount of permutations for a given string type. For instance if a string is passed in as all lowercase letters [a-z] and only 5 characters long than the program would return 11881376 (26^5). Non-alphanumeric characters fall under the special character category. Only printable ascii characters are allowed. A string with a digit, uppercase letter, lowercase letter, and special character would return the largest number that string's length.

Permalink: http://problemotd.com/problem/password-combinations/

Comments:

  • There are currently no comments. You can be first!

Content curated by @MaxBurstein