Epic Systems Corporation

www.epic.com
Employer Engaged

Interview Question

Software Developer Interview

You know a password is well-ordered numbers. Given an input

  # that tells you also how many digits are in the password, print all possible passwords.
Tags:
technical, algorithm
Answer

Interview Answer

1 Answer

0

The max amount of digits can't be greater than 10 because then it would not be well-ordered. Use up to 10 nested for loops to iterate through the digits in a well-ordered fashion based on the input #.

Interview Candidate on Dec 23, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.