From: Timothy Baron Date: 2010-09-10T12:00:13+09:00 Subject: Re: Key Associated w/ Maximum Value in Hash I've tried several of these approaches, and they all work well. I'm curious, too, about which is the fastest, but for my small hashs, there's no noticable difference. Adam Prescott wrote: > This won't capture multiple maximum values, but: > > hash.invert[hash.values.max] > > I'd be interested to see a benchmark profile of the suggestions. -- Posted via http://www.ruby-forum.com/.