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
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.
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.