File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder .solutions ;
2
2
3
- /**
4
- * 420. Strong Password Checker
5
- *
6
- * A password is considered strong if below conditions are all met:
7
-
8
- It has at least 6 characters and at most 20 characters.
9
- It must contain at least one lowercase letter, at least one uppercase letter, and at least one digit.
10
- It must NOT contain three repeating characters in a row ("...aaa..." is weak, but "...aa...a..." is strong, assuming other conditions are met).
11
- Write a function strongPasswordChecker(s), that takes a string s as input, and return the MINIMUM
12
- change required to make s a strong password. If s is already strong, return 0.
13
-
14
- Insertion, deletion or replace of any one character are all considered as one change.
15
- */
16
3
public class _420 {
17
4
public static class Solution1 {
18
5
/**
You can’t perform that action at this time.
0 commit comments