Newsgroups: biz.comp,biz.jobs.offered,bln.comp.unix,comp.emacs,comp.ibm,comp.jobs,comp.jobs.offered,comp.lang.awk,comp.lang.c,comp.lang.c++,comp.object,comp.org.acm,comp.org.ieee,comp.os.linux,comp.os.minix,comp.os.unix,comp.programming,comp.programm
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!uknet!strath-cs!ftel.co.uk!news
From: "Donald (Paddy) McCarthy" <dsm@ftel.co.uk>
Subject: Re: + + If you can answer this, do I have a job for you !!!
X-Nntp-Posting-Host: titan.ftel.co.uk
Content-Type: text/plain; charset=us-ascii
Message-ID: <32ABDB0D.2D20@ftel.co.uk>
Sender: dsm@titan.ftel.co.uk (RFC931)
Content-Transfer-Encoding: 7bit
Organization: Fujitsu Telecommunications Europe Ltd.
References: <01bbe2c5$83e861e0$238303c7@business.blogic.com> <32a80ec6.15470333@news.utrecht.nl.net>
Mime-Version: 1.0
Date: Mon, 9 Dec 1996 09:25:33 GMT
X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.5 sun4u)
Lines: 21
Xref: euryale.cc.adfa.oz.au biz.jobs.offered:681084 comp.emacs:32243 comp.lang.awk:3527 comp.lang.c:178051 comp.lang.c++:205380 comp.object:51350 comp.org.acm:4200 comp.org.ieee:3948 comp.os.minix:27272 comp.programming:33707

Jean-Claude Wippler wrote:
> 
> "Stephen Wood" <swood@blogic.com> wrote:
> 
> >Given that you have 500,000 integers in no particular order.
> >>You want to retrieve the 11 highest values.
> >How would you design you algorithm?

> >What if it were the 5 highest values?  the 500 highest values?
> 

Unix: sort|head -<n>

Cheers,  Paddy.

-- 
Donald (Paddy) McCarthy        Post Point 27,
                               Fujitsu Telecommunications Europe Ltd.,
dsm@ftel.co.uk                 Solihull Parkway,
                               Birmingham Business Park,
(0121) 717 6281                BIRMINGHAM, ENGLAND.
