We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The array is basically a list of regex's that need to be satisfied for a strong password and then we just test the password for each using array map and get back an array of booleans and then we filter out the truthy values and count and return the number of modifications to the original string
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Strong Password
You are viewing a single comment's thread. Return to all comments →
The array is basically a list of regex's that need to be satisfied for a strong password and then we just test the password for each using array map and get back an array of booleans and then we filter out the truthy values and count and return the number of modifications to the original string