Skip to content

Commit 041e5bc

Browse files
committed
add cpp solution
1 parent aff48ae commit 041e5bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

May-LeetCoding-Challenge/13-Remove-K-Digits/Remove-K-Digits.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Solution {
1010
if (ans.length() == 0 and c == '0') continue;
1111
ans += c;
1212
}
13-
13+
1414
while (k-- and ans.length()) ans.pop_back();
1515

1616
return ans.length()?ans:"0";

0 commit comments

Comments
 (0)