From: Dan __ Date: 2008-06-29T23:08:06+09:00 Subject: Recursive Logic - Examples and Resources? Hey all, Recently, one of my projects has run into a situation where I'm 95% sure I need to use recursion. Its a situation like the following: Out of 20 numbers, I need a set of 10. Each user has two numbers, each of which may or may not be part of the set. I need to get 5 users to complete the set of 10 desired numbers. So, if the set is 1 2 3 4 5 6 7 8 9 10, and User1 has (9, 17), while User2 has (3, 7), User2 could be part of the set, while User1 could not. Now, I know enough to figure out that I need some recursion here, but I have no idea how to implement it. Could anyone point me to some guides or examples that could be of help to me? Thanks very much in advance :) -- Posted via http://www.ruby-forum.com/.