wes d2a2ba9e15 first commit | hace 4 años | |
---|---|---|
.. | ||
README.md | hace 4 años | |
code.cpp | hace 4 años | |
unitTest.cpp | hace 4 años |
by Matt tags: validation, strings
Create a function that determines the minimum number of characters needed to make a strong password. A password is considered strong if it satisfies the following criteria: Its length is at least 6. It contains at least one digit. It contains at least one lowercase English character. It contains at least one uppercase English character. It contains at least
Create a function that determines the minimum number of characters needed to make a strong password.
A password is considered strong if it satisfies the following criteria:
!@#$%^&*()-+
Types of characters in a form you can paste into your solution:
numbers = "0123456789"
lower = "abcdefghijklmnopqrstuvwxyz"
upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
special = "!@#$%^&*()-+"
strongPassword(“Ed1”) ➞ 3
strongPassword(“#Edabit”) ➞ 1
strongPassword("W1llth!spass?") ➞ 0
Try solving this without RegEx.