From: Josh Cheek Date: 2009-10-01T14:50:35+09:00 Subject: Re: SystemStackError: stack level too deep > how make it deeper? --000e0cd11362d5b4780474d91b37 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 30, 2009 at 3:56 PM, Joshua Muheim wrote: > > Or a problem from Project Euler... ;-) > > http://projecteuler.net/index.php?section=problems&id=45 > > > > real 0m0.639s > > user 0m0.623s > > sys 0m0.008s > > > > And my solution (in Ruby) could even be made more efficient. However, > > it uses a constant amount of space (i.e., no recursion at all, just > > some nested loops). > > > > -Rob > > > > Rob Biedenharn http://agileconsultingllc.com > > Rob@AgileConsultingLLC.com > > Yeah, it's from Project Euler (our professor is just too lazy to create > his own tasks...). > > Your solution sounds interesting; would you mind posting it here? I > won't steal it; we don't have to submit perfect solutions, it's more > sort a thinking-task where we're told to deliver possible solutions. > -- > Posted via http://www.ruby-forum.com/. > > Which PE question is it? I've solved 140 of them, the computer that had the majority of my solutions ended up dying, and a large number of them are solved in Java, but there is no harm in checking to see if I have the solution on this computer, in Ruby. -Josh --000e0cd11362d5b4780474d91b37--