We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd24c6e commit 541b4e5Copy full SHA for 541b4e5
C++/strong-password-checker.cpp
@@ -8,6 +8,7 @@ class Solution {
8
missing_type_cnt -= static_cast<int>(any_of(s.begin(), s.end(), [](char c){ return isdigit(c); }));
9
missing_type_cnt -= static_cast<int>(any_of(s.begin(), s.end(), [](char c){ return isupper(c); }));
10
missing_type_cnt -= static_cast<int>(any_of(s.begin(), s.end(), [](char c){ return islower(c); }));
11
+
12
int total_change_cnt = 0;
13
int one_change_cnt = 0, two_change_cnt = 0, three_change_cnt = 0;
14
for (int i = 2; i < s.length();) {
0 commit comments