in reply to Making bubble sort look good
The jargon file has a nice entry on this, bogo-sort. I suppose their code would look like:
Then again, I've never used the Quantum functions-- and yes, I know you can't 'destroy the Universe' just by using DConway's modules... yet.use Quantum::Superpositions qw(any); return any(splatterSort(@list) and isSorted(@list));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Making bubble sort look good
by RMGir (Prior) on Aug 04, 2003 at 20:55 UTC |