From: Dark Ambient Date: 2006-06-29T22:07:34+09:00 Subject: Re: [SUMMARY] pp Pascal (#84) Kudos to Dana ! I really like Learning to Program though as some here know, the "rite to passage" (sorting with 3 arrays) is killing me , literally :). Stuart On 6/29/06, Ruby Quiz wrote: > My wife, Dana, is the one working through Learning to Program and the reason I > added the note to the quiz. Those watching the solutions will know that she did > submit, but she also told me in a private message: > > But I thought you should know that that problem was HARD!!!!! > > I said in the quiz that you can do it with only the knowledge you've gained in > the first eight chapters, and you can, but it does involve some tricky steps > compared to the book problems. If you decide to build up the triangle in memory > for example, you either need one long Array and some clever index work to > determine where rows start and stop or you need to work with nested Arrays. > Nested Arrays have a single example in chapter eight and the only the briefest > of mentions, so that might be a bit of a leap. > >