From: Christer Nilsson Date: 2005-12-14T02:27:33+09:00 Subject: Re: Calculating single-digit summands draq wrote: > Hello Christer, > > I don't see the problem. The list of arr(2) seems to be right. The > numbers are [1,2] - [1,3] - [1,4] - [1,5] - [1,6] - [1,7] - [1,8] - > [1,9] - [2,3] - [2,4] - [2,5] - [2,6] - [2,7] - [2,8] - [2,9] - [3,4] - > [3,5] - [3,6] - [3,7] - [3,8] - [3,9] - [4,5] - [4,6] - [4,7] - [4,8] - > [4,9] - [5,6] - [5,7] - [5,8] - [5,9] - [6,7] - [6,8] - [6,9] - [7,8] - > [7,9] - [8,9]. > > I beg pardon for my lousy comments. I've tried to improve. You'll find > the newest code at > http://secam.blogspot.com/2005/12/solving-kakuro-part-iii.html > Hopefully it's now better understandable. draq, I was using first(10) to keep the output short. Your code is working. Sorry about being unclear. christer -- Posted via http://www.ruby-forum.com/.