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.
- Prepare
- Algorithms
- Strings
- Strong Password
- Discussions
Strong Password
Strong Password
Sort by
recency
|
929 Discussions
|
Please Login in order to post a comment
JAVA & JAVASCRIPT Solutions. No Regex. Great example for anyone familiar with one language and learning the other.
Time Complexity: O(n) ... dependent on inputs Space Complexity: O(1)... indepent of of inputs
JAVASCRIPT:
function minimumNumber(n, password) { // Return the minimum number of characters to make the password strong
JAVA:
Javascript code solution
Python Code Solution
My Solution in C :
`