Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Tech-Interview Riddles

Posted by michael on Tue Jul 23, 2002 10:47 PM
from the cram-session dept.
An anonymous submitter writes "A computer engineering student at UC Berkeley has made a comprehensive archive of riddles from technical interviews. Very challenging and loads of fun. Also useful for interview preparation."
This discussion has been archived. No new comments can be posted.
Tech-Interview Riddles | Log In/Create an Account | Top | 843 comments (Spill at 50!) | Index Only | Search Discussion
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1) | 2
  • I believe Microsoft was responsible for popularizing the usage of riddles in interviews

    Yes, but they still have not been able to find anyone who can solve the "why does windows crash" riddle!!
  • more info... (Score:5, Informative)

    by onby2000 (593621) on Tuesday July 23 2002, @10:53PM (#3942227)
    for more tech interview questions and answers try http://www.techinterview.org/ [techinterview.org]
  • Why do interviewers use "riddles"? (Score:5, Insightful)

    by Turing Machine (144300) on Tuesday July 23 2002, @10:53PM (#3942228)
    What's up with using this type of question for interviews, anyway? Sure, they can be fun, but they're perfectly useless as far as telling whether someone can actually write solid code. 9 times out of 10, all they tell you is whether the interviewee has heard that one before.

    To interviewers: Do you really think that the answers to these questions don't spread through the entire department within 15 minutes after your first interview? I realize that "knowing the answer" makes you feel smarter than the prospective employee in some sense, but how about actually doing your job for a change?

    • Re:Why do interviewers use "riddles"? by Brant (Score:3) Tuesday July 23 2002, @11:07PM
    • Re:Why do interviewers use "riddles"? by Stinking Pig (Score:3) Tuesday July 23 2002, @11:08PM
    • Re:Why do interviewers use "riddles"? by MayorQ (Score:2) Tuesday July 23 2002, @11:15PM
      • Re:Why do interviewers use "riddles"? by Turing Machine (Score:3) Tuesday July 23 2002, @11:27PM
        • Re:Why do interviewers use "riddles"? by jalewis (Score:1) Wednesday July 24 2002, @12:08AM
          • Re:Why do interviewers use "riddles"? (Score:4, Informative)

            by Turing Machine (144300) on Wednesday July 24 2002, @12:29AM (#3942600)
            The "official" answer (which Microsoft was still using as recently as a couple of years ago, according to some friends of mine who interviewed there) is so the covers won't fall through the hole.

            This answer fails on at least two levels:

            1) There are plenty of manhole covers (or manhole-cover-like-objects) that aren't round. If you've been observant enough to notice this, you fail.

            2) There are plenty of other curves of constant width; an infinite number, in fact. The old Wankel rotary engine used such a shape. Though a circle is the only curve of constant *radius*, that's not the issue. If you know enough math to realize this, you fail.

            Another possible answer is that it makes it easier to roll a heavy cover out of the way. Again, one of the other curves of constant width would do just about as well.

            The REAL answer is that no one knows.

            Personally, I think Microsoft would be better off asking people why using fixed-sized buffers for user input is a bad idea, but hey.....
            [ Parent ]
            • Re:Why do interviewers use "riddles"? by bm_luethke (Score:1) Wednesday July 24 2002, @01:17AM
              • 1 reply beneath your current threshold.
            • I know the answer! (Score:5, Funny)

              Because the holes are round.

              I mean, really, any other shape wouldn't fit...

              *ducking*
              [ Parent ]
            • Re:Why do interviewers use "riddles"? by Anonymous Coward (Score:1) Wednesday July 24 2002, @01:25AM
              • by JamieF (16832) on Wednesday July 24 2002, @04:55AM (#3943151) Homepage
                >You can focus on code centric questions, but will that person still
                >perform well if they move to writing specs, managing people, or
                >developing an advertizing plan?

                Good, experienced developers should be really good at writing specs since they know what level of detail is needed. In fact I think they stand a better chance of writing an implementable spec than an Analyst who has never coded.

                As for managing people or developing an advertising plan, those are totally different skill sets from development. Have you ever worked with a manager who totally sucked as a manager but was a really smart developer? I have, several times. It's painful, and it drives home the point that managing well takes skill.

                The idea that you can just dump a bunch of smart people onto any problem and outperform a bunch of experienced people who aren't quite as smart strikes me as terribly naive. Or, in Microsoft's case, conceited: it's pointless to learn from the past because we're all smarter than they were. So we'll get it right the first time and come up with a more clever solution on our own than if we just READ A DAMN BOOK. And so you get badly designed, bug-ridden software that solves problems that were already solved better 10 years beforehand. Oops.

                Perhaps if you're truly working on something novel it would clearly be better to have smart people than not smart people, but in that case it's not possible to hire for experience anyway so it's not germane to this discussion.

                You want good ads, hire someone who's good at doing ads. You want a good manager, hire a good manager. Or, train someone who is partway there. But don't just throw bright young people at any task and assume that they'll do better than an experienced person. I've worked in companies where that was the explicit philosophy and it's a disaster. After a few nightmare projects that smart manager might figure out some techniques that a less smart manager took a lifetime to develop, but that less smart manager wrote it all down in a book 30 years ago. Don't you wish the smart manager had read it BEFORE their first project as a manager?

                Show me a chess club that can beat Marines at paintball and maybe you'll change my mind.
                [ Parent ]
              • Re:Why do interviewers use "riddles"? by Noofus (Score:1) Wednesday July 24 2002, @09:20AM
            • Re:Why do interviewers use "riddles"? (Score:4, Informative)

              by Latent IT (121513) on Wednesday July 24 2002, @01:32AM (#3942783)
              Well, crikey. But ask yourself this - if not round, well, what?

              Okay, so you're a guy, and you have to put a hole in the street, and put a cover on it. What shape do you make it? Triangular? Well, uh, why? It's pointy, and can fall through the hole. So you wouldn't do that. Square? Well, you really can't roll it, and TRUCKS have to drive over it, so it'll be heavy, so you'd *want* to roll it, rather than heft it.

              Hey, circles can roll.

              Oh, yeah. And that crap about a Wankel. Why would you want to fiddle around in traffic trying to get it to be oriented properly when a circle HAS a constant radius, as you point out? You can thump it down any old way. Fits!

              So, answer: Because it's just better than any other shape.
              [ Parent ]
            • Re:Why do interviewers use "riddles"? by TheMidget (Score:1) Wednesday July 24 2002, @01:34AM
              • 1 reply beneath your current threshold.
            • Re:Why do interviewers use "riddles"? by qqtortqq (Score:1) Wednesday July 24 2002, @02:18AM
            • Official answer is correct by theLOUDroom (Score:1) Wednesday July 24 2002, @08:16AM
              • 1 reply beneath your current threshold.
            • Re:Why do interviewers use "riddles"? by banking_intern (Score:1) Wednesday July 24 2002, @09:10AM
            • Re:Why do interviewers use "riddles"? by NFNNMIDATA (Score:1) Wednesday July 24 2002, @09:40AM
            • Re:Why do interviewers use "riddles"? by t (Score:2) Wednesday July 24 2002, @01:14PM
            • Re:Why do interviewers use "riddles"? by consoneo (Score:1) Wednesday July 24 2002, @07:05PM
            • Re:Why do interviewers use "riddles"? by chrisos (Score:1) Wednesday July 24 2002, @07:32PM
            • 3 replies beneath your current threshold.
          • Re:Why do interviewers use "riddles"? by kiscica (Score:1) Wednesday July 24 2002, @01:18AM
          • Re:Why do interviewers use "riddles"? by krugdm (Score:2) Wednesday July 24 2002, @07:13AM
          • 1 reply beneath your current threshold.
        • Re:Why do interviewers use "riddles"? by cpt kangarooski (Score:1) Wednesday July 24 2002, @01:53AM
    • by Samrobb (12731) on Tuesday July 23 2002, @11:30PM (#3942384) Homepage Journal

      A friend of mine refers to these as "bright bulb" questions. OK, you've demonstrated your grasp of C/C++ or whatever other skills we're primarily interested in hiring you for. These questions are there to give an interviewer some insight into whether or not you can think through abstract problems... how you anser them helps answer questions the interviweer has about you, like:

      • Are you creative?
      • Do you assume non-technical prolems are trivial or uninteresting?
      • When there's no obvious answer, do you give up?
      • Will you ask for more information?
      • If it's not provided, do you take a stab at solving the problem anyways?
      • How do you go about solving the problem (back to front, front to back, middle outwards)?
      • Do you eliminate obvious incorrect answers first, or try and find a logical starting point?
      • If you come close to an answer, do you try to handwave away part of the solution?
      • For some problems, do you see the obvious parallels with algorithms/problems you've encountered in CS?

      Yes, you can answers these sorts of things by asking technical questions... but in that case, you're often trying to evaluate so much - skill set, facility with a language, natural ability, problem solving, thinking pattern, creativity - that it's reasonable to remove the technical aspect and focus on straight problem solving methodology and ability.

      Finally, as an added bonus... anyone can ask these sorts of questions. Your HR person, the VP of engineering, a product manager... anyone. So you don't neccesarily have to give up time in the core technical interview sessions in order to ask these sorts of questions.

      [ Parent ]
    • To get to the other side. (Score:5, Insightful)

      by realgone (147744) <jim@@@mistertumbles...com> on Tuesday July 23 2002, @11:33PM (#3942394) Homepage
      I know this is going to sound a little flamebaity; I do apologize for that in advance. But IMHO, when an interviewer falls back on riddles or, worse yet, the "what's in the invisible box" type questions, it reflects either a lack of effort or interviewing skill -- maybe even both! -- on her/his part. Honest, those old hoary chestnuts are like the SAT scores of the job world: indicative of something, but god only knows what.

      Do you want to know if someone has strong logic/reasoning skills? Talk to them about past projects and how they've dealt with the inevitable problems and challenges that crop up. Look for those key details that show they're telling the truth; fakers are usually pretty easy to spot. Want to see examples of creative thinking? Ditto. Take the time to engage folks in regular conversation without resorting to gimmicks. You'll be surprised.

      It goes without saying that I've refused to break out riddles and the like whenever I've been in the position of hiring new staff. There's absolutely no reason to make the whole process seem like a bad Q episode of Star Trek TNG.

      [ Parent ]
    • Re:Why do interviewers use "riddles"? by donutello (Score:2) Wednesday July 24 2002, @01:05AM
    • Re:Why do interviewers use "riddles"? by frovingslosh (Score:2) Wednesday July 24 2002, @01:47AM
    • Re:Why do fairytales sound familiar? by Lurgen (Score:2) Wednesday July 24 2002, @02:02AM
    • Re:Why do interviewers use "riddles"? by popmace (Score:1) Wednesday July 24 2002, @05:02AM
    • It's to see how people deal with problem solving by neile (Score:1) Wednesday July 24 2002, @08:57AM
    • Re:Why do interviewers use "riddles"? by awol (Score:1) Wednesday July 24 2002, @09:11AM
    • Re:Why do interviewers use "riddles"? by lostboy2 (Score:1) Wednesday July 24 2002, @11:12AM
    • Re:Why do interviewers use "riddles"? by Mignon (Score:2) Thursday July 25 2002, @10:26AM
    • 1 reply beneath your current threshold.
  • This is great! (Score:3, Funny)

    by C.U.T.M. (595268) on Tuesday July 23 2002, @10:53PM (#3942232)
    Microsoft question: "Explain a scenario for testing a salt shaker." Too bad Microsoft will probabbly change all of their riddles now. Still very interesting.
    • 1 reply beneath your current threshold.
  • interviews suck by Junior Macintosh (Score:1) Tuesday July 23 2002, @10:54PM
  • These are pretty easy (Score:3, Interesting)

    by SlugLord (130081) on Tuesday July 23 2002, @10:55PM (#3942239)
    I sampled a few of the "relatively hard" puzzles... They're interesting, but they only take a minute to figure out. Am I correct in thinking that these are relatively easy, or am I being an ass and flaunting my ability to solve little puzzles?

    (In case of the latter, do you want to hire me? I live in Cleveland and go to Cornell University...)

  • Riddles... by Radi-0-head (Score:1) Tuesday July 23 2002, @10:55PM
    • 1 reply beneath your current threshold.
  • Riddles by WickedClean (Score:1) Tuesday July 23 2002, @10:55PM
    • Re:Riddles by chaidawg (Score:2) Tuesday July 23 2002, @11:09PM
    • Re:Riddles by MrResistor (Score:2) Tuesday July 23 2002, @11:30PM
    • Re:Riddles by GMontag451 (Score:2) Wednesday July 24 2002, @04:02AM
    • Re:Riddles by UnknownSoldier (Score:2) Wednesday July 24 2002, @09:53AM
    • 6 replies beneath your current threshold.
  • Is God so big that he can make a rock so big by multiplexo (Score:1) Tuesday July 23 2002, @10:57PM
  • The date is the riddle. by sapped (Score:1) Tuesday July 23 2002, @10:57PM
  • One of my favorites (Score:5, Interesting)

    I used to put this one on my programming tests. It's actually shocking how many people get it wrong...

    You are writing a parser that reads a C program and translates all the variable names into new names of the form "VAR######", where ###### is an integer incremented for each unique variable name. Discuss what is needed for the case where the C program already contains a variable of the form "VAR######".

  • Got one for ya (Score:5, Funny)

    by bravehamster (44836) on Tuesday July 23 2002, @11:00PM (#3942261) Homepage Journal
    Here's a riddle:

    You've just created a new and interesting website. People are intrigued, and you watch your visitor counter tick over rapidly. All of a sudden, your router explodes into jagged flaming plastic shards, and your server starts sending out distress signals on it's LED's in morse code. What has just happened?

    • Re:Got one for ya by Reality Master 101 (Score:1) Tuesday July 23 2002, @11:03PM
    • Re:Got one for ya by hdparm (Score:1) Tuesday July 23 2002, @11:06PM
    • Re:Got one for ya by baywulf (Score:1) Tuesday July 23 2002, @11:08PM
      • Re:Got one for ya (Score:5, Funny)

        by Tokerat (150341) on Tuesday July 23 2002, @11:49PM (#3942458) Journal
        We get signal.

        Main LED turn on.

        It's Taco!

        How are you gentelmen?

        All your b0xen are belong to us.

        You have no chance to pay bandwidth fees make your time
        [ Parent ]
        • NO by Tokerat (Score:2) Wednesday July 24 2002, @01:44AM
          • Re:NO by WebMasterJoe (Score:2) Wednesday July 24 2002, @02:22PM
          • Re:NO by Tokerat (Score:2) Wednesday July 24 2002, @03:09PM
          • 2 replies beneath your current threshold.
        • 1 reply beneath your current threshold.
    • Re:Got one for ya by Ark42 (Score:1) Tuesday July 23 2002, @11:24PM
    • Re:Got one for ya by Anonvmous Coward (Score:2) Tuesday July 23 2002, @11:34PM
    • Re:Got one for ya by Billly Gates (Score:2) Wednesday July 24 2002, @01:05AM
    • Re:Got one for ya by Billly Gates (Score:2) Wednesday July 24 2002, @01:08AM
    • 3 replies beneath your current threshold.
  • Another good reason not to ask riddles... by ashultz (Score:1) Tuesday July 23 2002, @11:01PM
  • No answers to the riddles by Anonymous Coward (Score:1) Tuesday July 23 2002, @11:02PM
  • /.ed by Quantum Singularity (Score:1) Tuesday July 23 2002, @11:03PM
  • Riddler (Score:3, Interesting)

    by Anonymous Coward on Tuesday July 23 2002, @11:08PM (#3942289)
    It's Turing complete. It weeps, it bites, it smiles and it loves. It can be made, it can be had, it can be taken. It was one, it was two then it became sixty two. It needs time, it need paitence it needs to be pruned. When time comes it needs a fourier series to make it look good. What is it?
    • Re:Riddler by Skyshadow (Score:1) Tuesday July 23 2002, @11:18PM
      • 1 reply beneath your current threshold.
    • Re:Riddler by David Gerard (Score:2) Wednesday July 24 2002, @11:23AM
    • 3 replies beneath your current threshold.
  • Good questions at a tech interview by openSoar (Score:1) Tuesday July 23 2002, @11:08PM
  • Well, he failed one riddle: by Hektor_Troy (Score:2) Tuesday July 23 2002, @11:12PM
  • TWO CONDOMS, THREE WOMEN (Score:5, Funny)

    by 0xdeadbeef (28836) on Tuesday July 23 2002, @11:16PM (#3942327) Homepage Journal
    A man would like to have safe sex with three women, any of whom may be carrying an STD. Given two condoms, how can he do so, while ensuring that no STD is passed from one woman (or possibly himself) to another (or to himself)?

    This is a common situation on the job. Who says riddles aren't relevant in interviews?
  • WARNING!!! WARNING!!! by $beirdo (Score:1) Tuesday July 23 2002, @11:19PM
  • I like to ask them... by tgibson (Score:1) Tuesday July 23 2002, @11:20PM
  • Regarding my favourite riddle... by David_R (Score:1) Tuesday July 23 2002, @11:27PM
  • Weird entries in the Microsoft category... by Succa (Score:2) Tuesday July 23 2002, @11:30PM
  • google cache.. by neo8750 (Score:2) Tuesday July 23 2002, @11:36PM
  • I'm a moron by cdtoad (Score:1) Tuesday July 23 2002, @11:41PM
    • Re:I'm a moron by Sir Tristam (Score:2) Wednesday July 24 2002, @01:41PM
  • A slashdotting isnt funny when it happens to me. by ptrahms (Score:1) Tuesday July 23 2002, @11:42PM
  • Release the EVIL by tRoll with Butter (Score:1) Tuesday July 23 2002, @11:48PM
    • 1 reply beneath your current threshold.
  • Incense riddle by Anonymous Squonk (Score:2) Tuesday July 23 2002, @11:49PM
  • Riddle (Score:3, Interesting)

    by buck_wild (447801) on Tuesday July 23 2002, @11:59PM (#3942501)
    What is:
    Greater than god
    More evil than the devil
    Poor people have it
    Rich people want it
    If you eat it, you'll die?
    • That riddle is impossible! by Anonymous Squonk (Score:2) Wednesday July 24 2002, @12:07AM
    • Re:Riddle by DJayC (Score:2) Wednesday July 24 2002, @12:22AM
    • Re:Riddle - spolier warning... by WIAKywbfatw (Score:2) Wednesday July 24 2002, @12:24AM
    • Re:Riddle by Diclophis (Score:1) Wednesday July 24 2002, @12:33AM
    • you forgot the end by Edmund Blackadder (Score:2) Wednesday July 24 2002, @12:49AM
    • Re:Riddle by Hous68 (Score:1) Wednesday July 24 2002, @12:51AM
    • Re:Riddle by wcspxyx (Score:3) Wednesday July 24 2002, @01:51AM
    • Re:Riddle by Bob The Cowboy (Score:1) Wednesday July 24 2002, @03:13AM
    • Re:Riddle by Trak (Score:1) Wednesday July 24 2002, @08:29AM
    • Re:Riddle by MrScience (Score:1) Wednesday July 24 2002, @12:40PM
    • Re:Riddle by buck_wild (Score:1) Wednesday July 24 2002, @08:06PM
    • 4 replies beneath your current threshold.
  • Interviewing at Microsoft by shird (Score:2) Wednesday July 24 2002, @12:06AM
  • again, hiring managers don't get it by e40 (Score:2) Wednesday July 24 2002, @12:12AM
  • Ripoff by burnsy (Score:1) Wednesday July 24 2002, @12:14AM
  • Maybe some Spoilers? by codewolf (Score:2) Wednesday July 24 2002, @12:17AM
  • Do you want some really hard problems? by mathematician (Score:1) Wednesday July 24 2002, @12:35AM
  • whee this is better than games magazine by graveyhead (Score:2) Wednesday July 24 2002, @12:38AM
  • Real Microsoft Interviews by yotaku (Score:1) Wednesday July 24 2002, @12:38AM
  • Common Interview Question: (Score:5, Funny)

    by wirefarm (18470) <`jim' `at' `mmdc.net'> on Wednesday July 24 2002, @12:39AM (#3942634) Homepage
    "What will it say in the newspaper about you when you die? In effect, write your own obituary:"

    All-time best answer:
    "Gunman shoots nine, then self."

    My friens Marc *swears* he said this in an interview.

    Cheers,
    Jim in Tokyo

  • Flashback! by JabberWokky (Score:2) Wednesday July 24 2002, @12:56AM
  • by MillionthMonkey (240664) on Wednesday July 24 2002, @12:59AM (#3942689) Journal
    You have a monopoly in a given market. A company creates a groundbreaking product and establishes a new, completely different market. Assuming you cannot buy the company, how do you smash it and extend your monopoly in the old market to the new one?

    How would you go about designing an email client that executes any code that is sent to it?

    If you could remove any of the fifty states (thus rendering federal antitrust statutes inapplicable to corporations in that state) which state would you remove and why?

    How would you go about designing an operating system for people who hate computers and who just want to use their machines for pay-per-view entertainment?

    An End User License Agreement (EULA) appears in a window with "I Agree" and "I Disagree" buttons. The text area in which the EULA appears is eighty columns wide. How many lines of text can be included in the EULA before a computer that just meets your system requirements is unable to load it into memory?

    At a fork in the road between two cities, you see 2 people. One always tells the truth, and comes from the city of safety. The other person always lies and comes from the city of cannibals, where they will eat you. Which one do you hire to write up licensing agreements for your legal department?

    An Arab sheikh is old and must will his fortune to one of his two sons. He makes a proposition. His two sons will use their computers, and whichever computer gets a blue screen of death first will win the fortune for its owner. During the race, the two brothers do nothing on their computers, neither willing to risk a blue screen of death. In desperation, they ask a wise man for advice. He tells them something; then the brothers immediately jump onto the computers and start installing new hardware, sharing files, and downloading hastily written security updates. What did the wise man say?

  • by JamieF (16832) on Wednesday July 24 2002, @01:04AM (#3942705) Homepage
    "So there's a programmer writing some code, in C. That programmer needs to use a buffer to store some data. How does the programmer write the code such that an unexpectedly large amount of data doesn't overwrite the stack and result in a remote root exploit?"
  • 100 Prisoners and a Light Bulb (Score:3, Insightful)

    by Dan Crash (22904) on Wednesday July 24 2002, @01:20AM (#3942749) Journal
    Well, I came up with a solution, but somehow it just seems inelegant to me. Any other solutions out there?
    100 prisoners in solitary cells. There's a central living room with one light bulb; the bulb is initially off. Everyday, the warden picks a prisoner at random, and that prisoner goes to the central living room. While there, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting the claim that all 100 prisoners have been to the living room. If this assertion is false (that is, some prisoners still haven't been to the living room), all 100 prisoners will be shot for their stupidity. However, if it is indeed true, all prisoners are set free and inducted into MENSA, since the world can always use more smart people. Thus, the assertion should only be made if the prisoner is 100% certain of its validity. The prisoners are allowed to get together one night, to discuss a plan. What plan should they agree on, so that eventually, someone will make a correct assertion?
    * SPOILER *

    .

    * SPOILER *

    .

    * SPOILER *

    .

    * SPOILER *

    The rule is: Turn on the light if it's off, unless you've already done this once, in which case, do nothing.

    The day all 100 of you meet, designate one person to turn off the light. Have them count each light they turn off. When they reach 100, they will know everyone else has been out already, and can safely demand their freedom.

    (Of course, assuming the warden really does pick someone at random, he could pick the same person every day, forever. Or not pick one person, every day, forever. Either way, there's no guarantee you're ever getting out.)

  • My random crappy question: by Latent IT (Score:2) Wednesday July 24 2002, @01:26AM
  • some selected answers: (Score:4, Informative)

    by SlugLord (130081) on Wednesday July 24 2002, @01:32AM (#3942784)
    Some answers from the hard section:

    Criminal cupbearers:
    Let's assume we only have 10 prisoners and that they each drink from up to 512 bottles. Number the bottles from 0 to 999. Prisoner 9 samples 0 to 511. Prisoner 8 samples 0 to 255 and 512 to 999. Prisoner 7 samples 0 to 127, 256 to 383, 512 to 639, etc. (prisoners alternating between sampling and not sampling blocks of wine in decreasing powers of 2 -- prisoner 0 drinks from every other bottle) Now line up the prisoners after onen month and treat corpses as ones and living prisoners as zeros and you have your answer in binary.

    Mysterious Triangle area
    Well, to make a long story short, they're not triangles.

    100 Prisoners and a Lightbulb
    Well if we assume they can all see the bulb every day, they can just toggle the bulb iff this is the first time they've been selected. If the last prisoner has counted the number of times the bulb has been toggled, he can assert that he is the last one to be selected.

    Square Formation
    Move the "notched" piece to teh righth of the current larger square and put the small square piece in the notch. put the larger of the triangular pieces at the top, horizontal edge of the new formation.

    Calendar Cubes
    I like this one. You need all the numbers from 0 through 9 plus 0 through 3. That's 14 faces. You will never need 00 though, so you can remove one of the 0s. Also, you will only ever need the 3 with 0 or 1, so you can remove it from one of the blocks. The solution: the numbers 1-6 on one block, and 7-9 and 0-2 on the other. Yeah it works.

    Mystery Matrix
    4. Entry from row plus Entry from row 2 plus 1 mod 10.

    Fork in the road I
    "is that the city you come from?" If the response is yes, go there, otherwise turn away.

    Fork in the road II
    Assume each person is standing on his respective road. "Is one of you a liar?" Yes means he's a truth teller, no means he's a liar.

    Egg Dropping
    18. Drop from the 10th, 20th, 30th, etc. After it breaks, go back 9 floors and start dropping every floor. You use 18 drops if it can drop from the 98th or 99th floors.

    Greedy Pirates
    It's not apparent to me that this is the intended answer, but "Throw pirates 3 and 4 overboard and divide up the rest between 1,2, and 5. Pirates 1 and 2 will agree to the largest share, and pirate 5 always has a say after that, since 3 and 4 can't agree to anything, so he's needed for the majority.

    Hmm, well it's getting late so I'll just do one more:
    Card Game
    Bob takes any card over 9. The probability that none will show up is roughly .2 with an average payoff of $5. That means that the probability of getting a face card is .8 with a payoff of 11.5. Using more precise figures, i.e. not .2 and .8, the average payoff is about 10.0857 (706/70)

  • by JamieF (16832) on Wednesday July 24 2002, @01:35AM (#3942788) Homepage
    Am I the only one who thinks this interviewing technique is retarded?

    Because Microsoft does something most definitely isn't a reason to emulate it. Microsoft isn't exactly known for producing well designed software, nor software that reuses proven patterns or algorithms that solved known problems 20 years ago. Better to hire a bunch of 21 year old college grads who can solve word problems from 8th grade algebra, and pretend that Microsoft invented computers! Whee.

    When I hire developers I want them to be good developers, not promising young interns. My interview questions typically involve technology questions, process questions, some theoretical PROGRAMMING questions, and some social / communication questions. I'm not saying that hiring smart people is a bad idea, but ignoring skills and only looking at generic problem solving ability is a recipe for unbelievably bad code. It's like hiring musicians based on measured hearing sensitivity and reflexes. OK, maybe that matters if you want to figure out which 5 year old is going to be a prodigy, but hand them an instrument and the noise that comes out is going to sound like ASS.

    Examples of things that "smart" developers I've worked with before have totally missed:
    - the existence of more efficient data structures than arrays
    - generalizing code into reusable chunks (functions, objects, whatever)
    - regular expressions
    - the difference between "client" and "server"
    - the reason for using descriptive variable names
    - collection libraries with built in sorting ("whatcha workin' on?" / "coding up a quicksort algorithm" / "in a J2EE app!?!?")

    You can't just get this from reading a book, either, although that definitely helps. You have to have some degree of EXPERIENCE too: at least a few projects, and some awareness of things like performance tuning, security, coding for maintainability, etc.

    I would use these "tech interview questions" only for hiring interns or recent college grads where the expectation is zero experience, zero clue, zero skill, and a correspondingly low salary. After all you're investing in someone. But for someone that commands a market rate developer salary in the high five figures, screw the brain teasers - just spend a couple of hours grilling them on skills, experience, discipline, etc. They will respect you big time in return because they know when you extend an offer that they won't be working with a bunch of dumb-asses who can get the explorers across the river without being eaten by the headhunters but who can't code their way out of a soggy paper bag.

    • by MeerCat (5914) on Wednesday July 24 2002, @05:15AM (#3943179) Homepage
      Precisely why companies end up with the wrong employees. My usual answer to these questions is "Sorry, the interview ends here, you failed", or (if I feel like baiting them) to "think outside the box" eg the bridge/flashlight/limited time issue "so, one guy is lighter than the others and they realise they can cross together, or they wait til their eyes adjust to the darkness and they're fine, or they check their watch and realise they have more time than they thought". If the interviewer says "no, wrong answer" I tell them they've missed "the big picture" and they need to "free their minds from the imagined constraints", and then ask them what we're doing next...

      On a similar note, I do NOT want to hire staff who can put a list of obscure C++ operators in order of precedence, I want to hire those who say "well, I'd look it up if need be, but to make sure the next guy reading my code doesn't get confused I'd simplify the expressions with braces"... bingo - instant pass !

      Interview questions should be open, not closed.

      --
      T
      [ Parent ]
    • Re:These tech interview questions are STUPID by (H)olyGeekboy (Score:1) Wednesday July 24 2002, @08:18AM
    • Better interview question by fizbin (Score:2) Wednesday July 24 2002, @09:00AM
    • Re:These tech interview questions are STUPID by randombit (Score:2) Wednesday July 24 2002, @04:07PM
      • 1 reply beneath your current threshold.
    • Re:These tech interview questions are STUPID by rufusdufus (Score:2) Thursday July 25 2002, @12:28AM
  • Proudly Serving My Corporate Masters by wrinkledshirt (Score:1) Wednesday July 24 2002, @01:38AM
  • rec.puzzles (Score:3, Informative)

    by valentyn (248783) on Wednesday July 24 2002, @01:49AM (#3942815) Homepage
    There are lots of these sorts of puzzle sites. One of the older/more famous is the rec.puzzles archive. Find it at here [rec-puzzles.org].

    Another good resource: the Princeton Mathclub [princeton.edu]

  • Mastermind II Impossible by fdiv(1,0) (Score:1) Wednesday July 24 2002, @01:53AM
  • Infuriating,,, (Score:4, Interesting)

    by Grape Shasta (176655) on Wednesday July 24 2002, @01:53AM (#3942825) Journal
    The thing that drives me nuts is not having the "right" answer to check my answers against. Look at this one, for example:

    willywutang is hanging out on a heavily forested island that's really narrow: it's a narrow strip of land that's ten miles long. let's label one end of the strip A, and the other end B. a fire has started at A, and the fire is moving toward B at the rate of 1 mph. at the same time, there's a 2 mph wind blowing in the direction from A toward B. what can willywu do to save himself from burning to death?! assume that willywu can't swim and there are no boats, jetcopters, teleportation devices, etc.. (if he does nothing, willywu will be toast after at most 10 hours, since 10 miles / 1 mph = 10 hours)

    There's many possible answers, so how do I know if I've got the answer they want? He's in a heavily forested area, so grabbing a log and paddling out around the fire shouldn't be hard. Or he could dig a little moat, though that might not be too effective. So, is there some other, clever answer, I should look for, or am I done? Grrrrrrrrr!

  • Cynical by The Cat (Score:2) Wednesday July 24 2002, @02:08AM
    • Re:Cynical by Asic Eng (Score:2) Wednesday July 24 2002, @03:18AM
  • Manhole covers by One Louder (Score:1) Wednesday July 24 2002, @02:20AM
  • Real-world questions (Score:3, Interesting)

    by Animats (122034) on Wednesday July 24 2002, @02:24AM (#3942881) Homepage
    • Explain why the stock market just crashed, outline the expected future of the economy for the next year or two, and indicate a general strategy for the company for this difficult time.
    • Will Microsoft's new approach to security work? Why or why not?
    • Based on recent news events, what level of effort should be applied to defending against info-war attacks?
    • Should we port to Itanium, Sledgehammer, or neither?
    • In an environment of Windows and Mac desktops, and Linux servers, what are the major integration problems?
    • How can we avoid an SPA audit?
    • We'd like to cut the load on our web site servers in half without losing any revenue. What should we do?
    • Historically, what copy-protection systems have worked successfully? Why?
    • Should we use C#? Why?
  • What's the solution to 5 pieces to form square? by Mustang Matt (Score:2) Wednesday July 24 2002, @02:31AM
  • The Best Microsoft Riddle by doorbot.com (Score:1) Wednesday July 24 2002, @02:47AM
  • The zen NT server by chefren (Score:1) Wednesday July 24 2002, @02:51AM
  • by g4dget (579145) on Wednesday July 24 2002, @03:02AM (#3942956)
    Yes, these questions look exactly what Microsoft optimizes for: employees who are really "smart" in a Mensa-sort-of-way. Too bad that programming isn't about being "smart", it's about craftsmanship, taste, engineering tradeoffs, tradition, experience, and long-term dedication. And, not surprisingly, those are areas where Microsoft is sadly lacking.
  • UNIX Admin Questions by Anonymous Coward (Score:2) Wednesday July 24 2002, @03:09AM
  • One from Lewis Carroll (well- Charles Dodgson) by Chris Johnson (Score:2) Wednesday July 24 2002, @03:16AM
  • bunch of riddles and answers... (Score:3, Interesting)

    by mgblst (80109) on Wednesday July 24 2002, @03:18AM (#3942988)
    This site contains answers to many of the microsoft questions.

    http://www.acetheinterview.com/cgi-bin/qanda.cgi ?a ction=topics&number=3

    i suppose the answer to many riddles is, look it up on google?
  • The Chicken from Minsk by perky (Score:2) Wednesday July 24 2002, @03:33AM
  • The "triangle" test by alapalaya (Score:1) Wednesday July 24 2002, @04:07AM
  • A Dilemma: by NigelJohnstone (Score:1) Wednesday July 24 2002, @04:31AM
    • Re:A Dilemma: by kwishot (Score:2) Wednesday July 24 2002, @04:44AM
      • Re:A Dilemma: by CProgrammer98 (Score:1) Wednesday July 24 2002, @09:24AM
      • 1 reply beneath your current threshold.
    • Re:A Dilemma: by rufusdufus (Score:2) Wednesday July 24 2002, @06:13AM
    • Re:A Dilemma: by Gingko (Score:2) Wednesday July 24 2002, @08:28AM
    • Re:A Dilemma: by obdii_for_dummies (Score:1) Wednesday July 24 2002, @09:04AM
    • Re:A Dilemma: by CProgrammer98 (Score:2) Wednesday July 24 2002, @09:12AM
      • Re:A Dilemma: by obdii_for_dummies (Score:1) Wednesday July 24 2002, @09:37AM
        • Re:A Dilemma: by CProgrammer98 (Score:1) Wednesday July 24 2002, @10:13AM
    • Re:A Dilemma: by CProgrammer98 (Score:2) Wednesday July 24 2002, @09:34AM
      • Re:A Dilemma: by NigelJohnstone (Score:1) Wednesday July 24 2002, @11:22AM
        • Re:A Dilemma: by CProgrammer98 (Score:1) Wednesday July 24 2002, @12:43PM
          • Re:A Dilemma: by NigelJohnstone (Score:1) Wednesday July 24 2002, @01:20PM
    • Re:A Dilemma: by One Louder (Score:1) Wednesday July 24 2002, @12:43PM
    • Re:A Dilemma: by NigelJohnstone (Score:1) Wednesday July 24 2002, @06:30AM
    • 1 reply beneath your current threshold.
  • Argh! (Score:3, Funny)

    by Chris Johnson (580) on Wednesday July 24 2002, @04:38AM (#3943130) Homepage
    *probable spoilers, only without workings* Anyone else having this problem? With certain puzzles, I'm struck forcefully with an answer but I can't (currently) come up with the rationalization to show it is unarguably correct.

    For instance: Brown Eyes and Red Eyes. I have this sense that upon being told by the outsider 'at least one of you has red eyes' (no top limit to the number), ALL the monks go commit suicide at midnight. I can see they still can't communicate, and can't prove they're not among the not-red-eyed, but there are links in the logical chain missing here- yet it points to that result somehow, due to their non-self-awareness and the confirmation that there are red-eyes present.

    By the same token- The mother is 21 years older than the child. In 6 years from now, the mother will be 5 times as old as the child. Question: Where's the father? I have to say: on top of the mother, conceiving the child- but I can't get the numbers to add up to anything sensible, it's just the only intersection that would give you the location of the father! *rrrrr*

    And finally, 0.999999... is not 1.0000000.... really it's not, though in practice, well...

    • Re:Argh! by Lazarus Short (Score:2) Wednesday July 24 2002, @05:29AM
      • Re:Argh! by NigelJohnstone (Score:1) Wednesday July 24 2002, @06:51AM
        • Re:Argh! by NigelJohnstone (Score:1) Wednesday July 24 2002, @07:10AM
          • Re:Argh! by x1048576 (Score:1) Wednesday July 24 2002, @09:41AM
            • Re:Argh! by NigelJohnstone (Score:1) Wednesday July 24 2002, @01:00PM
              • Re:Argh! by wunderhorn1 (Score:2) Wednesday July 24 2002, @02:03PM
              • Re:Argh! by Aliks (Score:1) Wednesday July 24 2002, @02:55PM
              • Re:Argh! by wunderhorn1 (Score:2) Wednesday July 24 2002, @03:36PM
              • Re:Argh! by Aliks (Score:1) Wednesday July 24 2002, @04:12PM
              • Re:Argh! by NigelJohnstone (Score:1) Thursday July 25 2002, @04:57AM
                • 1 reply beneath your current threshold.
              • 1 reply beneath your current threshold.
    • Re:Argh! by oGMo (Score:2) Wednesday July 24 2002, @12:22PM
    • Re:Argh! by MrScience (Score:1) Wednesday July 24 2002, @12:46PM
    • Re:Argh! by JPelzer (Score:1) Wednesday July 24 2002, @03:59PM
    • Where's the father? Answer. (SPOILER) by Rui del-Negro (Score:2) Wednesday July 24 2002, @11:50PM
    • 1 reply beneath your current threshold.
  • Why I never asked riddles.... (Score:5, Informative)

    by rufusdufus (450462) on Wednesday July 24 2002, @05:59AM (#3943264)
    I did a lot of interviews at MS when I was there, and I quickly learned not to ask riddles. First off, it makes people who don't get them uncomfortable and angry. Second, it doesn't actually show that the person can write software.

    I used a much simpler approach, so simple most people think its silly. But thats the point; nobody leaves the interview thinking they were tricked or duped. I always started with implementation of strcpy(). Half of the candidates failed right there! They took most of the hour to get it right (or not), but were able to see point-blank that they were not ready for the job.
    Next, I would ask about crashing cases, and if they figured out overlapping memory locations, have them write a 'fixed' version. This weeded out another big chunk. After that, I went into some color counting algorithms.
    I stayed well withing the field of what the candidate would expect, and did not try to trick him or make him nervous with off the wall riddles.

    This approach worked great, and didn't leave anyone feeling robbed and abused. The ability to solve riddles *is* an indicator of how smart the person is, but it is *not* an indicator of how good a programmer they will be.
  • Here's a riddle for you! by catmaker (Score:1) Wednesday July 24 2002, @06:05AM
  • I'm going to hell by deadline (Score:1) Wednesday July 24 2002, @06:30AM
  • Mirror URL by amaiman (Score:1) Wednesday July 24 2002, @06:52AM
  • Worst one ever... by dmorin (Score:2) Wednesday July 24 2002, @08:18AM
  • It's not only riddles by subrama6 (Score:1) Wednesday July 24 2002, @08:28AM
  • Using riddles by DustMagnet (Score:2) Wednesday July 24 2002, @08:54AM
  • Always check the obvious by Andy_R (Score:2) Wednesday July 24 2002, @09:01AM
  • I'm envious, my question was too easy by Ex-Parrot (Score:2) Wednesday July 24 2002, @09:13AM
  • Why I Failed My Microsoft Interview by JohnnyO (Score:2) Wednesday July 24 2002, @09:16AM
  • Riddle me this by imadork (Score:2) Wednesday July 24 2002, @09:22AM
  • tbe circular jail cell question by WebMasterJoe (Score:2) Wednesday July 24 2002, @09:53AM
  • Just be a smart ass by Uttles (Score:2) Wednesday July 24 2002, @09:57AM
  • My answers by theLOUDroom (Score:1) Wednesday July 24 2002, @10:09AM
    • Re:My answers by kilonad (Score:1) Wednesday July 24 2002, @12:55PM
    • Re:My answers by tomk (Score:1) Wednesday July 24 2002, @02:10PM
    • More of them by theLOUDroom (Score:1) Wednesday July 24 2002, @03:23PM
    • 2 replies beneath your current threshold.
  • My favorite by sharkey (Score:2) Wednesday July 24 2002, @10:19AM
  • This is what I used for interviews by Bodhammer (Score:2) Wednesday July 24 2002, @10:31AM
  • How you should really interview by bruckie (Score:2) Wednesday July 24 2002, @11:28AM
  • Riddles?? by krinsh (Score:1) Wednesday July 24 2002, @11:48AM
  • U2 Riddle by schmaltz (Score:2) Wednesday July 24 2002, @12:08PM
  • My riddles page... by epsalon (Score:2) Wednesday July 24 2002, @12:48PM
  • I'll reply to this one by gurensan (Score:1) Wednesday July 24 2002, @07:26PM
  • Final Exam by Sax Maniac (Score:2) Wednesday July 24 2002, @10:40PM
  • I Believe! (RE: Important) by Anonymous Coward (Score:2) Tuesday July 23 2002, @11:11PM
  • Re:An easy one for you: by NigelJohnstone (Score:1) Wednesday July 24 2002, @05:08AM
  • Re:Riddle me this Batman by seosamh (Score:2) Wednesday July 24 2002, @05:12AM
  • Re:Light bulb riddle [SPOILER] by bje2 (Score:2) Wednesday July 24 2002, @08:37AM
  • Link To Mirrors by cmdr_beeftaco (Score:1) Wednesday July 24 2002, @09:15AM
  • real mirror by wayne530 (Score:1) Wednesday July 24 2002, @09:39AM
  • 59 replies beneath your current threshold.
(1) | 2