You are viewing a single comment's thread. Return to all comments →
It's handled here:
cout << max(6-n, 4-(int)mask.count())
Since we can only add characters - we cannot change any - the number of extra characters to add is the maximum between:
6-n
4-mask.count()
Seems like cookies are disabled on this browser, please enable them to open this website
Strong Password
You are viewing a single comment's thread. Return to all comments →
It's handled here:
Since we can only add characters - we cannot change any - the number of extra characters to add is the maximum between:
6-n
(aka: number of characters missing to get length 6)4-mask.count()
(aka: number of characters missing to get all the 4 required "families").