mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-11 08:48:38 +00:00
More progress towards ResizeArray (#40)
This commit is contained in:
@@ -8,10 +8,10 @@ namespace HelloWorldApp
|
||||
static int Main(string[] args)
|
||||
{
|
||||
var l = new List<int>();
|
||||
l.Add(3);
|
||||
l.Add(8);
|
||||
l.Add(100);
|
||||
var m = l.Select(x => x.ToString()).ToList();
|
||||
// 2 + 103 + (1 + 3) = 109
|
||||
// 2 + 108 + (1 + 3) = 114
|
||||
return m.Count + l.Sum() + m.Select(x => x.Length).Sum();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user