Re: Arranging the keys problem
- From: Lars Weber <news@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 01:22:42 +0200
Hi Willem,
You're wrong.
Quicksort is not of linear runtime.
In worstcase it's O(n²) and in the average it's O(n log n).
Have a look here to get more information:
http://en.wikipedia.org/wiki/Sorting_algorithms#List_of_sorting_algorithms
Greetings,
Lars
Willem wrote:
>
> Quicksort. You may need a slight tweak to make it linear time.
>
--
The only easy day way yesterday...
.
- Follow-Ups:
- Re: Arranging the keys problem
- From: Googmeister
- Re: Arranging the keys problem
- From: Willem
- Re: Arranging the keys problem
- References:
- Re: Arranging the keys problem
- From: Willem
- Re: Arranging the keys problem
- Prev by Date: Re: Reverse words in a string (Another Interview question)
- Next by Date: Re: Reverse words in a string (Another Interview question)
- Previous by thread: Re: Arranging the keys problem
- Next by thread: Re: Arranging the keys problem
- Index(es):
Relevant Pages
|