Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strong Password #82

Open
abhay313 opened this issue Jan 18, 2021 · 1 comment
Open

Strong Password #82

abhay313 opened this issue Jan 18, 2021 · 1 comment

Comments

@abhay313
Copy link

Problem link: https://www.hackerrank.com/challenges/strong-password/problem
Description:
The website considers a password to be strong if it satisfies the following criteria:

  • Its length is at least
  • 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 one special character. The special characters are: !@#$%^&*()-+

She typed a random string of length in the password field but wasn't sure if it was strong. Given the string she typed, can you find the minimum number of characters she must add to make her password strong?

Input:
3
Ab1

Output:
3

Explanation:
She can make the password strong by adding 3 characters, for example, $hk, turning the password into Ab1$hk which is strong.
2 characters aren't enough since the length must be at least 6.

@abhay313
Copy link
Author

Please assign this to me under SWoC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant