Skip to content

Commit 2cb3065

Browse files
authored
Fix a typo in ExpressionAddOperators
1 parent bf2ea85 commit 2cb3065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DFS/ExpressionAddOperators.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ExpressionAddOperators {
3333
}
3434

3535
for i in pos..<num.count {
36-
if i != pos && num[i] == "0" {
36+
if i != pos && num[pos] == "0" {
3737
break
3838
}
3939
let curt = Int(num[pos..<i + 1])!
@@ -66,4 +66,4 @@ extension String {
6666
return result
6767
}
6868
}
69-
}
69+
}

0 commit comments

Comments
 (0)