input
stringlengths 790
840
| output
sequencelengths 1
1
| id
stringlengths 40
40
|
---|---|---|
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = kLZFkqJuM03zwvPId6fSja.TsoePHqnaCbfHYqeL3qzJ
Output:
| [
"24"
] | task956-1241e1010af04e379f81419e21b8ae83 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = OnJ0KBmURi3H0jMfaqypMhNi4Yhth
Output:
| [
"9"
] | task956-6b0c39e4a938461f89d0c50da9abe164 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = iK!
Output:
| [
"3"
] | task956-34a694ada4b94a5bbb78a6bd9806ff98 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = fuDny1
Output:
| [
"0"
] | task956-ed3e80172b8a40d5900c97753f91e0e5 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = nAUBH258su
Output:
| [
"0"
] | task956-92d44c89d886479ba1a50825022804cc |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = Sl
Output:
| [
"4"
] | task956-875e8930b8cb4af28b3740c9288c1c3b |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = Fn!8i1LXA0W1tgc0yqZ!A26!Ele0yUlHPrq4u96PyZtbXOfN
Output:
| [
"28"
] | task956-988dc534723544938ab16f3bab9e1373 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = xkpiB6xAgch0njaJH.7T.bdz9v8adLJ1a9TWvD
Output:
| [
"18"
] | task956-015475b2422240439c54efc5f392f799 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = WxEqSNnK9rKn9S7FRD4b0kZAdkXVocTA7ACmJzlkAg
Output:
| [
"22"
] | task956-7b5d0a1ce5a14e8aa6dcb43b5694fe92 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = yH6YM5OMDgRUE
Output:
| [
"0"
] | task956-233916f6c05a409fbea86f5eb1592908 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = poNgfmlT.7OFGdVyq5yqL3e73oD3d.VxZC7wQ069MGoaJVQA
Output:
| [
"28"
] | task956-a091535717314b669cf6af808f9c27c5 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = g6E1pS9rm!GaiU3rintxWZkFD886
Output:
| [
"8"
] | task956-ed8edea3d42b4d8e8d9fae5c30e86c2c |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = !K8pbOTSfxMq8cGqroGuAnylwS
Output:
| [
"6"
] | task956-50b2400563a647cbb49f47529631b7ad |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = D
Output:
| [
"5"
] | task956-3ad753aa8f494aafb5c5e1d44b76f06d |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = HJ4UsuORPC5PRRb7THt1sWb5KFLrm
Output:
| [
"9"
] | task956-d43e14b968474b63a60cc226e4f742b3 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = qiKot6K0hBOSBdwHZXReIaeAydX
Output:
| [
"7"
] | task956-25080250ff384bf3ac88144147cc7dd7 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = r2xDTmF6!eMIqvo
Output:
| [
"0"
] | task956-c2952b8652094b6781cdafba3053c996 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = fRzQ2R2prCXx7ICe0XLYxcD
Output:
| [
"3"
] | task956-8035894fb7ee438eb5be94fa3af801fa |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = OEGF6UB2KJAlBFIfy6
Output:
| [
"0"
] | task956-22da7516c99b42f4bf81dd87d6b72fe6 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = ba
Output:
| [
"4"
] | task956-abba4c2d2f144d3086fe964f700012fb |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = QXBoeWH!qfS!wf2KGdIG7BIJUYV1XEj6n.1R
Output:
| [
"16"
] | task956-5567b40da1c44288aaf98101403ca63a |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = yyqY9XKRfFHO545fbjFqwpt43a0pOwv6
Output:
| [
"12"
] | task956-be58b38895f446d4852d4387a2bb0d5e |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = BS3YqfQV.3qc1riWVzKHKZrBS.KT3tlY9gE
Output:
| [
"15"
] | task956-f7e53d71ab424176ad94801dca0d8c15 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 4gpvJ1r9SixQ.
Output:
| [
"0"
] | task956-e141804ee4104decb11e1a74a9f0bd37 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 3SLRNox1pVW0dWweJcITSXkxj
Output:
| [
"5"
] | task956-556567bc7af84e30aca86a1322f66199 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 0.
Output:
| [
"4"
] | task956-287ca3911d8c4f01aec889c7599fa43b |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 116.CvalmOC62scWJQOFXJfaINT3.APd1drm.i8f5Dzt
Output:
| [
"24"
] | task956-96be043594574b5b99493a29033af244 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = YerUVzHf39UwxZvArpMMmvE.c641ISZ
Output:
| [
"11"
] | task956-c1b34403df714007961e1a40bc09682b |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = Oe3QRRpziwAd6vqzOZLYyiZJPVX3
Output:
| [
"8"
] | task956-8161f9f15a1a49a49cdd2ba2cbe9e4d6 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = FkRKSaRt6fzw0Z1P3Q4J18BEuAhiQQIyMYKR1L4wYDeX
Output:
| [
"24"
] | task956-6ba538650953496eb69a05e70f8367d6 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = zlkpAQRTWKpxXcgY6NGK6lTSyhxIthb7qGsz7thw11
Output:
| [
"22"
] | task956-2d0b8b877cb84581a7c362d5425b1442 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = eKcY4fAWWUgj2NI7jha34YxpvvfJTD
Output:
| [
"10"
] | task956-3fec882f0e78439e90fffc6ea2faf0d3 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = V!tBA7H0mV0h
Output:
| [
"0"
] | task956-de56455b21de4f6687376d0a38be4aed |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = WOY7PMfhmOVP34InKhpiogCQSRTag10Z67XGhyqLg
Output:
| [
"21"
] | task956-8ee4772f94794f48aa8bbfbad780b22f |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = LH.jlNcdMRhEuryXKCv
Output:
| [
"1"
] | task956-97a68d0fc19a409fb9bce1fa671c6a43 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = rgSu3
Output:
| [
"1"
] | task956-1b417887335b4141aa8c93549507c1b7 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = GmI7mNpUyIeB3I0vwZ5wPVYLFs.RHy
Output:
| [
"10"
] | task956-302de4d4e9614cda8f4b52e5ce2a6f41 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = YarASvmC8Ptcr
Output:
| [
"0"
] | task956-54dc8e7f03634603985b2faeda272fb6 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = q0rBW
Output:
| [
"1"
] | task956-a86c8c52d3b64e01a06e6c5765df0e41 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = VBT8XH7Z5YJoz.dtxlC5fDksjizcgVZSL93o6DfnCvx
Output:
| [
"23"
] | task956-05020bb27d0b4ea9a45fe1f08db3700a |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = j5B.q6muEZurtY9EJAK8z9KqKeqKfpONTH5XIiqgnK
Output:
| [
"22"
] | task956-0a0166f2accf4597a557fb0e80ae2ef2 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = AjoEcnKlPlAH5IubyeWpIJ0sajz08TobhypNoUlO
Output:
| [
"20"
] | task956-be8fc714a16241248991be75c1212de4 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = AK9BJp7K6usvP0wVEWmt8S4FRE6zWh2srvw37013galaU
Output:
| [
"25"
] | task956-1e8646ceda9b4282a23d145f79207954 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = IGINz!0c3HuTnWEZNf!6jnkTdJl2pPduyeC
Output:
| [
"15"
] | task956-8c24b33d74ec43c7981265c4a756cc06 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = rwo06w
Output:
| [
"1"
] | task956-bf8e48fd34d0467f975618883c8badd2 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = jMmVEqIypz2UUCnsF6RhOswVM4Z3s9TuHRGiUC
Output:
| [
"18"
] | task956-6eb5c0c598934862bddccb06411731eb |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = C.IBb2X57KsOe2bFlWyoZUwO!ZGXPVvY
Output:
| [
"12"
] | task956-a5472e1b8ef04130a2dec59109e325f7 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = B1vStzoPF
Output:
| [
"0"
] | task956-046571440bdc4343b8e8741ddb6ec1b3 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = Aw6azIChJ.7AULmotg.NSU.l
Output:
| [
"4"
] | task956-c29e5b5b7f554057917f76d6c9428a80 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = bLMGK5OwBf5xQGWfRUgEPrnSboqW0DyUr45Zk592P4X
Output:
| [
"23"
] | task956-3e4750d53c574ec79c9fa2f489b00aaa |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 653UCTBywEShhXHEBbl2CPPwCRO
Output:
| [
"7"
] | task956-e434d49fbd714870af2657110595e3f6 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = NDW4kp
Output:
| [
"0"
] | task956-625efb21d9ff4f4483a6b73ceee05f6f |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = azP!If6Cj7KmK7DvHNBDQJ
Output:
| [
"2"
] | task956-cc17ddfd62d94ad3a43c99d5fef76a2f |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = gCZK
Output:
| [
"2"
] | task956-f440601dd5a44036bdda163dfd8f703f |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = J1LeM8SdFGTDSNNB6WTQ!Am0s25amOMaBQbRwBd
Output:
| [
"19"
] | task956-4fa64c02b5cf4e1e9a08acff78ab55cf |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = jA1hazaV9gjHy!PEb.FNfypPQl39htL
Output:
| [
"11"
] | task956-a75720cf57924adba7eb186dff1e78f8 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 2ob
Output:
| [
"3"
] | task956-34d4e81ac2a74be5bc4159b0343b25ad |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = ERaSSmFN!GKiyGIg0h7h9O1nO3CY7qkwEt..NxH
Output:
| [
"19"
] | task956-82149f54679f42888f40e6bcc0b83563 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 7Qldh
Output:
| [
"1"
] | task956-2f98aa62a60f4a5e99e1d9d6ad1b633f |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 2t61Rh1OuongYa1KMlgtsBall.8DPwcgp5Zs.ffJ
Output:
| [
"20"
] | task956-94fa54cd74e14da6853a2e25275cc44d |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = E8XGh7UTd
Output:
| [
"0"
] | task956-f36c4a1f64ba4b9180799f6ae942a1f1 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = kgsw6V03fhgNj.HZ
Output:
| [
"0"
] | task956-52434b9c31ba42f0a158a1b0480980aa |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = nrl7WGC2VQ65Um7hU.Ginf6ZKvlYxwKUIM
Output:
| [
"14"
] | task956-140c1f82b83c48d18045f620039ae93a |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = sRrEO
Output:
| [
"1"
] | task956-acf40d25c56049d4b9cd8027282da8cd |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = JGeCpJpiGCiPUVSyV7W
Output:
| [
"0"
] | task956-e2f93cd2bcb74d47807c8fc4b4eb4ade |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = dnWXDKmdelix
Output:
| [
"1"
] | task956-ff6fdbd08927473296625b768a5a598a |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = haLlKnzvn8iGdnXGp86cqlFB8yXlV
Output:
| [
"9"
] | task956-399790ad8ed34991862db714694278be |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = v4nsa!w1yVkZYW6OsDX45ovjduEq4A5bMPwViy9GfYnmoHM
Output:
| [
"27"
] | task956-e95c164fcc0f4a9d8b0b40ba18b21199 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = r8aMT!5nUcgvbsD4maAOD8Rkhouq5M9gZPYn23MUUrTcv1
Output:
| [
"26"
] | task956-d46f5b32449f4722ac3b7109281ab79b |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = x6Ql1F5hwq7s8gxs0r1Q
Output:
| [
"0"
] | task956-6f5beff32ca74d7c925d52373ac429fb |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = KGr4L7bCbr19gIpbCnPDSmmaTJn!LV1hGYonTM
Output:
| [
"18"
] | task956-034a7e052ac74f1aae43b7b15e556d86 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 5m8gzkSZgJ1MvEGDd6ALse
Output:
| [
"2"
] | task956-08f626242dd148c68dedc56e86b2cbb5 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 8P.ei7rJp6L.FUcnPXPx31On5P9y.pFjuH!
Output:
| [
"15"
] | task956-7bc9eb3a41c44be8bc60e28d90a3cd9d |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = TM1PV9xUZCtf84LDA5.5it7wFeFvFLnaiqh6toJd.OG
Output:
| [
"23"
] | task956-af990f7fabe24862a4f59360e4fc9e64 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = xdAk6OxGS8m
Output:
| [
"0"
] | task956-ae9fc9d0a0f24227bdb5fbe52d629e44 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = vaMo.rnepTInEU4XUtw.FF5bI0q0zWrqtQrx
Output:
| [
"16"
] | task956-4742ec9a358240ed9ab5975448059c03 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = !6xXRBvzMMzXwOtpkAzEhoQ
Output:
| [
"3"
] | task956-8f05c87a1b994be998a21b5426978cee |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = TsyzIz2Y6JdnrKk
Output:
| [
"0"
] | task956-acc44ded7fa64ef9a07eace8fecff2fc |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = mH14q6zWuu
Output:
| [
"0"
] | task956-015315b9798c408e9fe747256ee745a3 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = sUervZ!XpuJoSY52RY6ktNp8
Output:
| [
"4"
] | task956-17822ba1179e4bf782fd27e3a6c376d8 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = HpnYJhOacB3d.pokYB6Uv1Wne
Output:
| [
"5"
] | task956-e62a1bba5de74e178749efb42d165e37 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = EyIsl3PpS.38!eLj.YtSGiUncK494Jn!T6c0bp!29JzI
Output:
| [
"24"
] | task956-0d39769d64374e03a2b0476eb634106f |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = .68uylEES94BqOevbeee3xObGLvOs3Xcw
Output:
| [
"13"
] | task956-50230a9877c94a00a33ca92273e6b339 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = x6Vu9fhuZUstToS0x!kmZ1SXGyGwAiCdCdSqBJ.Hc.wW7T
Output:
| [
"26"
] | task956-4fd4b08062a6447c818f83d958a52674 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = qWK3NU76C
Output:
| [
"0"
] | task956-524224bfcf2544b1963b16744bc6836e |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = K0uhGgLBwpEusBypMjaKZVzgFaYHLTeyLZxOR8cx5x04y5
Output:
| [
"26"
] | task956-b4b6cc02b44141d7960b9a5e9844160e |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = bVVqxPxN2pUIh6zSpg7YnsR7.2jeR7Tbfqocfo8Oaae
Output:
| [
"23"
] | task956-1fdcbb32abb442d8829cdc54fb0b3176 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = .jEPdYx63RT24Yi7
Output:
| [
"0"
] | task956-da70c3f3bded4ce78928e591a6967c55 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 8rsVhjjYkQCi0u.W!r9zfmcMAEG
Output:
| [
"7"
] | task956-31fa83722581471eb975faa98c2f2b98 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = uocf01zr6C6XpzhvQCO0ZifJG.DuomsVGO
Output:
| [
"14"
] | task956-ccd9b5f1e18f42c299ee1cbbe416f647 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = tfkPVDAK8ysyCAGdvWZYobiq20
Output:
| [
"6"
] | task956-6ba41a2b44664e30ad66255927646aba |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = X8Es5.Xk4xCiA1ePsp!Sh8UMbXAVkWgrsI0F0TTk
Output:
| [
"20"
] | task956-3a272776198d44c6901cab71107a410e |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 1Tmnoi3pqv43mG4apl.GiIIfBTMq0A
Output:
| [
"10"
] | task956-7b9ab4b3b87b42179e0d93d973a886d2 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = Cxs!uj9rSKbiosSLyBAPVvPn6D8.p4SjTn
Output:
| [
"14"
] | task956-8d7f051564f14141a365055fb6a29a29 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = PldfopCa6C7TAQ
Output:
| [
"0"
] | task956-6901d934520d4c079246c04397d4ac0e |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = YUGp4x98bXMrXjew41xYc
Output:
| [
"1"
] | task956-02d4f5e0bcf34798a4f1df4ba95c9be3 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = x.JfXAgRU4mOv4YjdcP7rIcVwmFbs3D.9jXskSxBw3
Output:
| [
"22"
] | task956-67288a3891ff40499a5c37f53734cd4b |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = yBW0RpAJTlTrmKYslzQY!CrNWyyPTta
Output:
| [
"11"
] | task956-46377fa546eb4890bc245177f6c96d95 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = jn.Q7JCdW10dYF02SANXTUHTE
Output:
| [
"5"
] | task956-6c1bd4b25c634b068c597ddcdcd11439 |
Definition: You are given a password and you need to generate the number of steps required to convert the given password to a strong password. A password is considered strong if (a) it has at least 6 characters and at most 20 characters; (b) it contains at least one lowercase letter and one uppercase letter, and at least one digit; (c) it does not contain three repeating characters in a row. In one step you can: (1) Insert one character to password, (2) delete one character from password, or (3) replace one character of password with another character.
Positive Example 1 -
Input: password = a
Output: 5
Positive Example 2 -
Input: password = aA1
Output: 3
Negative Example 1 -
Input: password = 1337C0d3
Output: 1
Now complete the following example -
Input: password = 3te0wnbzL510!tio3!IukQrEfXia2c.J7uaXg03
Output:
| [
"19"
] | task956-e2ffa853bd2e4da7bba52b3a3226a442 |
Subsets and Splits