From: Bill Kelly Date: 2008-07-12T12:34:28+09:00 Subject: Re: [QUIZ] Symbolify (#169) From: "Alex LeDonne" > On Fri, Jul 11, 2008 at 9:57 PM, Bill Kelly wrote: >> >> My ultra cheezy cheat version is 18 characters... I'm amazed >> people are coming up with such short non-cheat versions :) > > I, on the other hand, am looking forward to the various "cheating" > solutions. I re-learned some operator precedence rules solving this > the old fashioned way, but I expect I'll learn more from solutions > that produce, for example, zero-length strings, but still pass the > tests. > > But then I've come to expect such wizardry from some of the submitters > to this quiz... Although I'd mulled over a slightly more clever cheat, I went with a totally unclever, groan-inducing approach. It's a Kobayashi Maru solution... (c.f. http://echosphere.net/star_trek_insp/insp_kobayashi.jpg ) On the other hand, my non-cheat solution is currently 70 characters, with whitespace squeezed out... :/ And it has to run with `ulimit -s unlimited` or it will die with (eval):1: stack level too deep (SystemStackError) before it even gets to 1000.... lol Oh well . . . :) Regards, Bill