0
How to do test 4 in Password Validator?
2 Antworten
+ 2
The error is because of the first condition, as it outputs "Strong" if it is less than 7 which is not correct based on the problem.
To Solve:
🔹Just change the "Strong" to "Weak"
__________________
if (s.length() < 7)
return "Weak";
__________________
+ 2
Thank you