News for hackers. Stuff that matters.
Re:My Favorite Algorithm: Linear Time Median Finding by davidmurdoch on Saturday July 27, 2024 @10:33AM (#41086856)
I was thinking LINQ was optimized to do a single enumeration for cases such as this. Can LINQ be easily, naturally, and idiomatically used with `IEnumerable<T>.Max` and `.Min` to avoid looping twice, or is it more of a more rigorous and intentional optimization the engineer would have to seek out?

There are no comments on this comment yet.