Subj : Re: Arranging the keys problem To : comp.programming From : Sc0rpi0 Date : Sat Oct 01 2005 04:57 pm Willem: > Sc0rpi0 wrote: > You're confusing me with someone else. Yes ;) you was replying ;P, sorry :P > And you're missing the point. > ) Just "sorting by counting". If we have definied set of extacly know > ) elements, there is: R,W,B. so even if given in totally random order > ) just one pass counting how many was W,R and B. Then write that many > ) to the table. RRRRRRWWWBBBBBBBBBBBBBBB - sorted. > > That's very nice, but his professor obviously wanted the Dutch National > Flag algorithm. That's OK, but what his professor wants was not mentioned :P. The only was said - some set of 3-kind elements to sort. -- Sc0rpi0 I hated going to weddings. All the grandmas would poke me saying "You're next". They stopped that when I started doing it to them at funerals. .