JRuby

Range#min() and Range#max() perform sorting instead of running in O(1) time