Skip to content

Commit

Permalink
fix DeepCoderBenchmarkSuite/Program8 and EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
t-h-e committed May 9, 2017
1 parent 33ba28d commit 04301c2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ protected override IEnumerable<List<int>> GenerateTest() {
protected override Tuple<string[], string[]> GenerateInputOutput(IEnumerable<List<int>> trainingAndTest) {
var input = trainingAndTest.Select(x => String.Format("{0}", String.Format("[{0}]", String.Join(", ", x)))).ToArray();
var output = trainingAndTest.Select(x => {
x.ToList().Reverse();
return x.Zip(x, (a, b) => a - b).Where(y => y > 0).Sum().ToString();
var y = x.ToList();
y.Reverse();
return y.Zip(x, (a, b) => a - b).Where(z => z > 0).Sum().ToString();
}).ToArray();
return new Tuple<string[], string[]>(input, output);
}
Expand Down

0 comments on commit 04301c2

Please sign in to comment.