0
Only 2 test failed please help for password validator
7 Réponses
+ 1
Your code slightly changed
https://code.sololearn.com/c2ZEhBKMKqbK/?ref=app
+ 1
You will have to separate numbers and Special Characters in to two switch statements and Check each > =2
+ 1
See the code again did sone changes.
0
Can you please explain in code
0
Now giving 5 test errors
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 ==...)
0
Thanks Asgar Ali