Skip to content
Prev 174365 / 398506 Next

A category reduction problem

I'd do this with recursion, I think

* A valid (n+1) number sequence is a valid n-number sequence followed either by the last number of the sequence or the last number plus one.

* A valid 1-number sequence is 0


       -thomas
On Fri, 20 Mar 2009, Kathy Gerber wrote:

            
Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle