From: "David A. Black" Date: 2004-07-11T21:31:37+09:00 Subject: Re: A little algorithmic help requested... Hi -- On Sun, 11 Jul 2004, Hal Fulton wrote: > Here's a problem my tired brain is having trouble with. > > Given a sorted array of integers, convert them into as many > ranges as possible (ranges of three or more). > > Example: > [1,2,3,4,6,7,8,11,12,15,16,17] ==> [1..4,6..8,11,12,15..17] > > How would *you* do this? Haven't tried yet -- but see also: http://www.rubygarden.org/ruby?CodingChallenge0001 David -- David A. Black dblack@wobblini.net