Skip to content

Commit 73c37de

Browse files
authored
Update 411.Minimum-Unique-Word-Abbreviation.cpp
1 parent 64347ad commit 73c37de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

String/411.Minimum-Unique-Word-Abbreviation/411.Minimum-Unique-Word-Abbreviation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Solution {
7171
int j = i;
7272
while (j<m && ((mask>>j)&1)==0)
7373
j++;
74-
count += to_string(j-i).size();
74+
count += 1;
7575
i = j-1;
7676
}
7777
}

0 commit comments

Comments
 (0)