Inbox for mugurel_ionut@yahoo.com    Yahoo! - My Yahoo!     Options - Sign Out - Help
Mail    Addresses    Calendar    Notepad   

E*TRADE. It's your money.
Download Attachments
    Prev | Next | Inbox
Date: Fri, 16 Mar 2001 23:22:33 -0500 (EST)
From: Mihai Badoiu <mihai@MIT.EDU>  | Block Address | Add to Address Book
To: <probleme@ldc.ro>
Subject: Chaos from Order

Sunt curios cati pot sa faca urmatoarea problema:

se dau n numere reale (double). (n poate sa fie mare, 1M sa zicem) Sa 
se
sorteze numerele. (limita de timp: cel mult de 5 ori solutia juriului)
Nu e voie sa folositi qsort din C. ;) Solutiile de mai mult de 40 de 
linii
sunt ignorate.

INPUT "in":
n
x1 x2 x3.... xn

OUTPUT "out":
y1 y2 ... yn (sortate)

--mihai


     Prev | Next | Inbox
Download Attachments

Yahoo! Messenger - Send instant messages to friends!
Address Book · Alerts · Auctions · Bill Pay · Bookmarks · Briefcase · Broadcast · Calendar · Chat · Classifieds · Clubs · Companion · Domains · Experts ·Games · Greetings · Home Pages · Invites · Mail · Maps · Member Directory · Messenger · My Yahoo! · News · PayDirect · People Search · Personals · Photos · Shopping · Sports · Stock Quotes · TV · Travel · Weather · Yahooligans · Yellow Pages · more...

Privacy Policy- Terms of Service - Guidelines
Copyright © 1994-2001 Yahoo! Inc. All rights reserved.