Tech Interview

A site for technical interview questions, brain teasers, puzzles, quizzles (whatever the heck those are) and other things that make you think!

    • 2 Apr 2010

      Nuggets

      Posted at 12:19 pm by Admin, on April 2, 2010

      You can go to a fast food restaurant to buy chicken nuggets in 6-pack, 9-pack or 20-packs. is there such a number N, such that for all numbers bigger than or equal to N, you can buy that number of chicken nuggets?

      Continue reading →

      0 Comments
      Posted in regular
    • 2 Apr 2010

      Orbs

      Posted at 10:53 am by Admin, on April 2, 2010

      You have two identical crystal orbs. you need to figure out how high an orb can fall from a 100 story building before it breaks. you know nothing about the toughness of the orbs: they may be very fragile and break when dropped from the first floor, or they may be so tough that dropping them from the 100th floor doesn’t even harm them.

      Continue reading →

      0 Comments
      Posted in regular
    • 2 Apr 2010

      Salaries

      Posted at 10:51 am by Admin, on April 2, 2010

      Three coworkers would like to know their average salary. how can they do it, without disclosing their own salaries?

      Solution

      How about: Person A writes a number that is her salary plus a random amount (AS + AR) and hands it to B, without showing C. B then adds his salary plus a random amount (BS + BR) and passes to C (at each step, they write on a new paper and don’t show the 3rd person). C adds CS + CR and passes to A. Now A subtracts her random number (AR), passes to B. B and C each subtract their random number and pass. After C is done, he shows the result and they divide by 3.

      Continue reading →

      0 Comments
      Posted in regular
    • 2 Apr 2010

      World Series

      Posted at 10:48 am by Admin, on April 2, 2010

      You have $10,000 dollars to place a double-or-nothing bet on the Yankees in the World Series (max 7 games, series is over once a team wins 4 games).

      Unfortunately, you can only bet on each individual game, not the series as a whole. how much should you bet on each game, so that, if the yanks win the whole series, you expect to get 20k, and if they lose, you expect 0?

      Continue reading →

      0 Comments
      Posted in regular
    • 2 Apr 2010

      100 Factorial

      Posted at 8:42 am by Admin, on April 2, 2010

      how many trailing zeroes are there in 100! (100 factorial)?

      Solution

      One per factor of 10, and one per factor of 5 (there are more than enough 2’s to pair with the 5’s), plus one per factor of ten squared (one occurrence) and one per factor of 5 squared (three occurrences).

      Continue reading →

      0 Comments
      Posted in regular
    • 2 Apr 2010

      Oil Mogul

      Posted at 8:39 am by Admin, on April 2, 2010

      You are an oil mogul considering the purchase of drilling rights to an as yet unexplored tract of land.

      The well’s expected value to its current owners is uniformly distributed over [$1..$100]. (i.e., a 1% chance it’s worth each value b/w $1..$100, inclusive).

      Continue reading →

      0 Comments
      Posted in regular
    • 2 Apr 2010

      Vienna

      Posted at 8:36 am by Admin, on April 2, 2010

      It’s the middle ages, you’re travelling across europe and you want to find the way to vienna. you come to a crossroads, now there are two ways to go. at the crossroads stand a knight and a knave. the knight answers every question truthfully. the knave answers every question falsely. you don’t know which guy is which. how can you figure out which road leads to Vienna by only asking one question?

      Continue reading →

      0 Comments
      Posted in regular
    • 2 Apr 2010

      Duel

      Posted at 8:33 am by Admin, on April 2, 2010

      You find yourself in a duel with two other gunmen. you shoot with 33% accuracy, and the other two shoot with 100% and 50% accuracy, respectively. the rules of the duel are one shot per-person per-round. the shooting order is from worst shooter to best shooter, so you go first, the 50% guy goes second, and the 100% guy goes third.

      Continue reading →

      0 Comments
      Posted in regular
    • 2 Apr 2010

      Hen

      Posted at 8:28 am by Admin, on April 2, 2010

      If a hen and a half lay an egg and a half in a day and a half, how many hens does it take to lay six eggs in six days?

      Solution

      If 1.5 hens lay 1.5 eggs in 1.5 days (or 36 hours) then: 1 hen lays 1 egg in 1,5 days or 4 eggs in six days thus 1.5 hens lay 6 eggs in 6 days

      0 Comments
      Posted in regular
    • 1 Apr 2010

      Box ‘o Numbers

      Posted at 12:20 pm by Admin, on April 1, 2010

      Arrange the numbers 1 to 8 in the grid below such that adjacent numbers are not in adjacent boxes (horizontally, vertically, or diagonally):

             ___
      | 1 |
      =============
      | 6 | 4 | 3 |
      =============
      | 2 | 7 | 5 |
      =============
      | 8 |
      =====

      Continue reading →

      0 Comments
      Posted in regular
    ← Older posts
    Newer posts →

Proudly powered by WordPress.

Theme: Minipress by Obox Themes.