Skip to content

Commit be4fe6f

Browse files
authored
Merge pull request soapyigu#219 from Cee/patch-1
Fix a typo in ExpressionAddOperators
2 parents 249fff2 + 2cb3065 commit be4fe6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DFS/ExpressionAddOperators.swift

+2-2
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)