Skip to content

Commit 8613b2d

Browse files
refactor 420
1 parent 7e012a6 commit 8613b2d

File tree

1 file changed

+0
-13
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-13
lines changed

src/main/java/com/fishercoder/solutions/_420.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
package com.fishercoder.solutions;
22

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-
*/
163
public class _420 {
174
public static class Solution1 {
185
/**

0 commit comments

Comments
 (0)