sliding window algorithm in c#

91

sliding window algorithm in c# -

var input = new[] { "a", "b", "c", "d", "e", "f" };
var result = input.Zip(input.Skip(1), (a, b) => Tuple.Create(a, b));

Comments

Submit
0 Comments