Skip to content

Commit

Permalink
Merge pull request #286 from MrPhantomT/feature/fix_sum_of_exp
Browse files Browse the repository at this point in the history
fix solution sum of exp
  • Loading branch information
mokevnin committed Nov 10, 2015
2 parents 6d7507d + d28b5ec commit a714fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_asserts/issues/sum_of_exp.clj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
summand2 (map str (reverse strign2))
overflow 0
result ""]
(if (and (empty? summand1) (empty? summand2))
(if (and (empty? summand1) (empty? summand2) (zero? overflow))
result
(let [number1 (read-string (or (first summand1) "0"))
number2 (read-string (or (first summand2) "0"))
Expand Down

0 comments on commit a714fe8

Please sign in to comment.