by Flow · 16y ago · 0 comments
Yes, it's triggers my Rainman instincts to point out that 1. It should be max = last . sort 2. Or min = head . sort 3. You are making assumptions on the sorting algorithm to make it possible to short-cut the evaluation.
K-MART! K-MART! :)
Edit: How nice of you to downvote...
I think you should be more careful with following conventions. Everyone knows sort sorts ascending.