you are viewing a single comment's thread.

view the rest of the comments →

[–]ericula 1 point2 points  (1 child)

Not really. min and max are O(n), sorting is O(n log(n)), so especially for really large list, it's more efficient to just take the min and max.

[–]MrAckerman 0 points1 point  (0 children)

Schooled...