+ 2
Code coach problem Password validation [SOLVED BY ME].Can anyone suggest a more optimised approach to this problem ???
6 Respostas
+ 5
The challenge requires two. It does not care about unique so they could add a test case that causes yours to fail.
+ 3
Personally, they should have required letters both lower and upper case. But, !11111! would be strong.
+ 1
Gave my code via DM.
+ 1
John Wells
Yes yours is a more compact code but in my code if the password to is hdgge12!! then the output is"weak" coz my code checks if atleast 2 of the reqd spec chars are present or not like hdgdg12!# is "strong" ie atleast 2 unique spec chars should be present no matter what no of repetition one spec char has.
+ 1
John Wells
Okay then.
0
Yes absolutely sir