-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFixer.cs
More file actions
25 lines (22 loc) · 755 Bytes
/
Fixer.cs
File metadata and controls
25 lines (22 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// This is a simple coding problem that displays knowledge of the List interface in C#. This is the first problem I solved using lists and so my technique is somewhat basic.
// The problem can be found here https://www.codewars.com/kata/56b29582461215098d00000f/train/csharp
namespace Fixer
{
public class Fixer
{
public static List<int> PipeFix(List<int> numbers)
{
List<int> returnNumbers = new List<int>();
for (int i = numbers[0]; i < numbers[numbers.Count-1]; i++)
{
returnNumbers.Add(i);
}
return returnNumbers;
}
}
}