0

Only 2 test failed please help for password validator

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

16th Apr 2020, 5:37 AM
Vinayak Dutt
Vinayak Dutt - avatar
7 Antworten
16th Apr 2020, 6:26 AM
Asgar Ali
Asgar Ali - avatar
+ 1
You will have to separate numbers and Special Characters in to two switch statements and Check each > =2
16th Apr 2020, 6:09 AM
Asgar Ali
Asgar Ali - avatar
+ 1
See the code again did sone changes.
16th Apr 2020, 7:13 AM
Asgar Ali
Asgar Ali - avatar
0
Can you please explain in code
16th Apr 2020, 6:19 AM
Vinayak Dutt
Vinayak Dutt - avatar
0
Now giving 5 test errors
16th Apr 2020, 6:36 AM
Vinayak Dutt
Vinayak Dutt - avatar
0
I'm not that good in c++, so I'll just explain a logic. You could create lists(say, 3) and append special characters, digits and strings. Then, using if and else, or switch, check each condition (i.e if length ==...)
16th Apr 2020, 7:34 AM
Justus
Justus - avatar
0
Thanks Asgar Ali
16th Apr 2020, 7:39 AM
Vinayak Dutt
Vinayak Dutt - avatar