+ 1

Why can't I pass the 8th test case? What's the missing?

https://code.sololearn.com/caA0Vq84zPbR/?ref=app

8th Jul 2023, 10:18 AM
Catty Cat
Catty Cat - avatar
5 ответов
+ 5
You have to think again about this: if (isValid && countNum >= 2 || countSymbol >= 2) … Is that similar true to: The password is strong when that has at least two numbers and has at least two special symbols?
8th Jul 2023, 11:54 AM
JaScript
JaScript - avatar
+ 3
Sorry if I am telling wrong. Your programming input has a mistake maybe I can't tell the exact because I can't see your test cases
8th Jul 2023, 10:52 AM
Aquarius
Aquarius - avatar
+ 2
// line number 24 else if ((input[i] >= 33 && input[i] <= 38) || input[i] == 42 || input[i] == 64) // line number 30 if (isValid && countNum >= 2 && countSymbol >= 2)
8th Jul 2023, 1:02 PM
SoloProg
SoloProg - avatar
+ 2
Thanks for the answers! I'll try
8th Jul 2023, 1:59 PM
Catty Cat
Catty Cat - avatar
+ 2
Update: it's fixed now thanks guys
8th Jul 2023, 2:09 PM
Catty Cat
Catty Cat - avatar