From: Seebs Date: 2009-11-09T21:55:09+09:00 Subject: Re: Help with this On 2009-11-09, Marnen Laibow-Koser wrote: > This is obviously a homework problem. Agreed. > You will learn more if you do not > ask others to do your homework. Unless the others are bored and give you "interesting" answers. I'm not good enough at Ruby to give people homework answers, but in C, I like to provide high-quality implementations which carefully misinterpret the spec in some interesting way but are otherwise highly robust, well-tested, and written *extremely* badly -- using advanced techniques. In short, programs which any reader will immediately realize were not produced by the student. This way, if the student wants to take advantage of the "free" homework answer, figuring out what's going on (and correcting any misreading of the spec) can actually be pretty educational. -s -- Copyright 2009, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!