From: "Jan E." Date: 2012-06-23T15:13:00+09:00 Subject: Re: Simulation of an album of figures Hi, It would have been nice if you'd told us your own thoughts on this taks or at least your level of Ruby knowledge. Now all we have is a rather vague description of your homework. I don't know how to measure "difficult" figures. If we assume that the children have all the figures they could get, then "difficult" probably just means rare. So there are two task: - find the child with the most figures - find the rarest figure For the implementation, I'd start by finding a good way to store the data: You have 17 data sets consisting of a name and a set of figure numbers (which may range from 1 to 70). Then you have to select the most digilent child and the rarest figure. You may want to look into the Enumerable#may_by method: http://ruby-doc.org/core-1.9.3/Enumerable.html#method-i-max_by -- Posted via http://www.ruby-forum.com/.