Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
code to fullfill the newline as delimetere requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-franc committed Mar 25, 2014
1 parent b8eed2d commit 705dc92
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -11,7 +11,7 @@ public int SumFromString(string input)

try
{
var values = input.Split(',');
var values = input.Split(',','\n');
return values.Select(x => int.Parse(x)).Sum();
}
catch (FormatException ex)
Expand Down

0 comments on commit 705dc92

Please sign in to comment.