6 kyu

Password Maker

157 of 545dinglemouse

Description:

Background

Different sites have different password requirements.

You have grown tired of having to think up new passwords to meet all the different rules, so you write a small piece of code to do all the thinking for you.

Kata Task

Return any valid password which matches the requirements.

Input:

  • len = password must be this length
  • flagUpper = must (or must not) contain UPPERCASE alpha
  • flagLower = must (or must not) contain lowercase alpha
  • flagDigit = must (or must not) contain digit

Notes

  • Only alpha-numeric characters are permitted
  • The same character cannot occur more than once in the password!
  • All test cases guarantee that a valid password is possible
Fundamentals

Similar Kata:

Stats:

CreatedJul 4, 2018
PublishedJul 5, 2018
Warriors Trained1670
Total Skips42
Total Code Submissions6938
Total Times Completed545
Java Completions157
C# Completions77
Python Completions326
Total Stars44
% of votes with a positive feedback rating91% of 176
Total "Very Satisfied" Votes153
Total "Somewhat Satisfied" Votes16
Total "Not Satisfied" Votes7
Total Rank Assessments16
Average Assessed Rank
6 kyu
Highest Assessed Rank
4 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • dinglemouse Avatar
  • Blind4Basics Avatar
  • KataSideKick Avatar
  • Kacper Surówka Avatar
  • FArekkusu Avatar
Ad