I have the following code:
var strings = new List<string>() { "012abc", "120ccc", "000aaa" };
var str = strings.Select(x => x.ToCharArray());
I need to get the max string on each position returned as a string.
- Position 1: 0, 1 and 0 = 1
- Position 2: 1, 2 and 0 = 2
Resulting string should be: 122ccc.
Is there a Lambda / Linq query that can be used for this or do I just need to loop through each character?