Practice Strong Password Checker
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
A strong password has 6 through 20 characters, includes at least one lowercase letter, one uppercase letter, and one digit, and contains no run of three or more identical consecutive characters. In one step, you may insert a character, delete a character, or replace one character with another. Return the minimum number of steps needed to make password strong, or 0 if it already is.
Source: Strong Password Checker on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
password = "a"
5
# Example 2
password = "aA1"
3
# Example 3
password = "1337C0d3"
0
Constraints
Related LeetCode Problems
Practice more problems similar to Strong Password Checker.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.