http://www.perlmonks.org?node_id=154114


in reply to Re: Re: Algorithm Pop Quiz: Sorting
in thread Algorithm Pop Quiz: Sorting

BZZZT

I'm going to disallow this one as it's relying on a feature that's language dependent for its implementation (the XOR swap for stings). The sprit is there, but you're starting to wander. This kind of behavior needs to be discouraged early! Use the extra register for the swap. :)

These are all so good though. The excitement is terrible. Just terrible!

  • Comment on Re: Re: Re: Algorithm Pop Quiz: Sorting