Skip to main content

Practice ยท 3 of 3

Debug: The Pipeline That Reads the Log Twice

CHALLENGE
Difficulty: intermediate+25 XP

Summarize over a counting source calls Count() and then Max() on the SAME lazy source โ€” two full reads. Fix it so the source is read exactly once and the summary stays "count=<n>;max=<m>". ``csharp static string Summarize(IEnumerable<int> source); // "count=6;max=42" ``

Back to lesson: Practice: Iterators & Pipelines Practice