in reply to Simple bubble sort

Quick question:
Why? Perl has a builtin based on qsort.

You do note it's inefficient. The builtin finishes the sort of 1,000,000 elements on a P3-650 in 10 seconds.

Replies are listed 'Best First'.
Re: Re: Simple bubble sort
by IndyZ (Friar) on Sep 19, 2001 at 23:50 UTC
    Mostly I did it because I was bored, and I had never actually coded it before, even though I knew the theory.