home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!caen!destroyer!gumby!yale!yale.edu!cs.yale.edu!rtnmr.chem.yale.edu!rescorla
- From: rescorla@rtnmr.chem.yale.edu (Eric Rescorla)
- Subject: Re: New Employee Test
- Message-ID: <1992Nov19.010534.19506@cs.yale.edu>
- Sender: news@cs.yale.edu (Usenet News)
- Nntp-Posting-Host: rtnmr.chem.yale.edu
- Organization: Rescorla for himself.
- References: <assist.721943530@orion.oac.uci.edu> <1992Nov19.002724.13837@en.ecn.purdue.edu>
- Date: Thu, 19 Nov 1992 01:05:34 GMT
- Lines: 25
-
- In article <1992Nov19.002724.13837@en.ecn.purdue.edu> krauskop@en.ecn.purdue.edu (Curtis D Krauskopf) writes:
- >Suggestions that a quicksort or other algorithm be used (especially
- >since quicksort is a standard library function) get many bonus points.
- >If the candidate asks, they can have full access to the company library
- >of C books. (I don't believe in closed-book tests, especially on-the-job).
- I know that this is nitpicking, but....
- I don't believe that in fact quicksort is a standard library function.
- You should not be fooled by the fact that the standard library function
- is called qsort(). K&RII certainly doesn't specify that the algorithm
- used to do the sort will in fact be quicksort. It could, for instance,
- be heapsort, as far as I can tell.
-
- Also, I'd note that you specified that the guy should create a bubble
- sort. One might believe that you had a specific reason why you wanted
- that. I certainly wouldn't tell someone who was writing code for me
- that I wanted a bubble sort unless that's what I actually wanted.
-
- -Ekr
-
-
- --
- -------------------------------------------------------------------------------
- Eric Rescorla, DoD#431 (Nighthawk S) rescorla@rtnmr.chem.yale.edu
- Former chemist now CM400 mechanic ekr@eitech.com(preferred)
- "Meet the new boss, same as the old boss."
-