Skip to content

Commit

Permalink
Fix a typo in ExpressionAddOperators
Browse files Browse the repository at this point in the history
  • Loading branch information
Cee authored Nov 16, 2017
1 parent bf2ea85 commit 2cb3065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DFS/ExpressionAddOperators.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ExpressionAddOperators {
}

for i in pos..<num.count {
if i != pos && num[i] == "0" {
if i != pos && num[pos] == "0" {
break
}
let curt = Int(num[pos..<i + 1])!
Expand Down Expand Up @@ -66,4 +66,4 @@ extension String {
return result
}
}
}
}

0 comments on commit 2cb3065

Please sign in to comment.