edualgo / interview-corner

Many time, when an interview approaches, candidates start searching for different algorithms in different programming languages for practise. This project aims to build a website which will contain the codes along with the techniques and explanations so that it can be helpful for many
https://opensource.edualgoacademy.com/interview-corner/
MIT License
42 stars 41 forks source link

Strong Password #82

Open abhay313 opened 3 years ago

abhay313 commented 3 years ago

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:

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 commented 3 years ago

Please assign this to me under SWoC