PuzzlersWorld.com

  • Hacker Puzzle
  • Interview Puzzles
  • Number Puzzles
  • Maths Puzzles

Calendar cube

November 30, 2007 by Ankur Leave a Comment

A man has two cubes on his desk. Every day he arranges both cubes so that the front faces show the current day of the month. what numbers are on the faces of the cubes to allow this?

See Solution : Calendar cubeHide Solution
We have two cubes, that means 12 faces or 12 numbers one on each face. The all possible dates are 1 to 31, that includes 11 and 22. So 1 and 2 should be there on both cubes. It means we need 12 digits (0-9 and 1, 2). Now if we see the distribution of numbers on each faces, we have 1 and 2 on both cubes. For 30 we need 0 and 3 on different cubes. So lets say, first cube has 1, 2, 3, 4, 5, 6 and other one has 0, 1, 2, 7, 8, 9. It looks fine, but we we notice, the man uses both the cubes for each day, so how do we show 07, 08, 09 ???

So that means we need to have 0 on both the cubes, but that makes it 13, but there are only 12 faces. Thats the trick in this question, we can place cubes upside down too, now which is the number we can use both the ways, yes its 6, it can be used as 9 and then we can have all the possible dates.

so first cube : 0, 1, 2, 3, 4, 5

second cube : 0, 1, 2, 6, 7, 8

Checkout more Interview Puzzles Tags: Difficult, Interview, Puzzle, Solved Puzzles

Zeroes in 100 factorial

November 30, 2007 by Ankur 3 Comments

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

See Solution : Zeroes in 100!
For every factor of 10, there will be one trailing zero similarly for every factor of 5 there will be one trailing zero (as 5*2 =10, and there are enough number of 2’s). But we have to take care of repetitions.

10, 20,…., 90 = 9 zeros

100 = 2 zeros

5, 15, 25……95 = 10 zeros

and 1 extra 5 in each of 25, 50 and 75 = 3 zeros

so total 9+2+10+3 = 24 zeros.

Checkout more Interview Puzzles Tags: Easy, Interview, Solved Puzzles

Average salary

November 30, 2007 by Ankur Leave a Comment

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

See Solution : Average salaryHide Solution

Let the three persons are A, B and C. Now first A tells the sum of his salary and a random number to B , lets say (SA + A(random no. of A)). Now B adds the sum of his salary and a random number to the number given by A i. e. B makes the total = (SA +A) + (SB+B) and he passes this number to C. (at each step, they don’t show the no. to the third person). Now C does the same, adds his salary and a random number to the amount told by B. Now C passes this total equals to (SA+SB+SC+A+ B+C) to A. Now A subtracts his random no. (A), passes to B then B subtracts his random no. (B) and passes to C. Finally C subtracts his random no. (C) and tells everybody. They divide it by 3. Now they have the average salary.

Checkout more Logical Puzzles Tags: Easy, Interview, Solved Puzzles

100 doors

November 30, 2007 by Ankur 3 Comments

There are 100 doors, all closed. In a nearby cage are 100 monkeys. The first monkey is let out, and runs along the doors opening every one. The second monkey is then let out, and runs along the doors closing the 2nd, 4th, 6th,… all the even-numbered doors. The third monkey is let out. He attends only to the 3rd, 6th, 9th,… doors (every third door, in other words), closing any that is open and opening any that is closed, and so on. After all 100 monkeys have done their work in this way, what state are the doors in after the last pass, which doors are left open and which are closed ?

See Solution : 100 doorsHide Solution

Consider door number 56, monkeys will visit it for every divisor it has. So 56 has 1 & 56, 2 & 28, 4 & 14, 7 & 8. So on pass 1 1st monkey will open the door, pass 2 2nd one will close it, pass 4 open, pass 7 close, pass 8 open, pass 14 close, pass 28 open, pass 56 close. For every pair of divisors the door will just end up back in its initial state. But there are cases in which the pair of divisor has same number for example door number 16. 16 has the divisors 1 & 16, 2 & 8, 4&4. But 4 is repeated because 16 is a perfect square, so you will only visit door number 16, on pass 1, 2, 4, 8 and 16… leaving it open at the end. So only perfect square doors will be open at the end.

Checkout more Interview Puzzles Tags: Easy, Interview, Solved Puzzles

Cube Puzzle

November 28, 2007 by Ankur 3 Comments

You have a normal six sided cube. I give you six different colors that you can paint each side of the cube with (one color to each side). How many different cubes can you make?

Different means that the cubes can not be rotated so that they look the same. This is important! If you give me two cubes and i can rotate them so that they appear identical in color, they are the same cube.

See Solution : Cube puzzleHide Solution

Let X be the number of “different” cubes (using the same definition as in the problem). Let Y be the number of ways you can “align” a given cube in space such that one face is pointed north, one is east, one is south, one is west, one is up, and one is down. (We’re on the equator.) Then the total number of possibilities is X * Y. Each of these possibilities “looks” different, because if you could take a cube painted one way, and align it a certain way to make it look the same as a differently painted cube aligned a certain way, then those would not really be different cubes. Also note that if you start with an aligned cube and paint it however you want, you will always arrive at one of those X * Y possibilities.

How many ways can you paint a cube that is already “aligned” (as defined above)? You have six options for the north side, five options for the east side, etc. So the total number is 6! (that’s six factorial, or 6 * 5 * 4 * 3 * 2 * 1). Note that each way you do it makes the cube “look” different (in the same way the word is used above). So 6! = X * Y.

How many ways can you align a given cube? Choose one face, and point it north; you have six options here. Now choose one to point east. There are only four sides that can point east, because the side opposite the one you chose to point north is already pointing south. There are no further options for alignment, so the total number of ways you can align the cube is 6 * 4.

Remember, Y is defined as the number of ways you can align the cube, so Y = 6 * 4. This gives us 6! = X * 6 * 4, so X = 5 * 3 * 2 * 1 = 30.

Reference : http://www.techinterview.org/Solutions/fog0000000128.html

Checkout more Interview Puzzles Tags: Difficult, Interview, Solved Puzzles

  • « Previous Page
  • 1
  • …
  • 92
  • 93
  • 94
Submit your Puzzle

You may also like

    Categories

    • Aive hi Puzzles
    • Akbar and Birbal
    • Alphabetical Puzzles
    • Bollywood Puzzles
    • Google Code jam
    • Hindi Riddles
    • Interview Puzzles
    • Interview Questions
    • Logical Puzzles
    • Malayalam Puzzles
    • Maths Puzzles
    • Miscellaneous
    • Number Puzzles
    • Picture Puzzles
    • Riddles
    • Tamil Puzzles
    • Technical

    Social

    • View puzzlersworld’s profile on Twitter
    privacy policy

    Copyright © 2025 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in

    • Hacker Puzzle
    • Logo Puzzles
    • Optical Illusions
    • WhatsApp Puzzles
    • Picture Puzzles
    • Riddles
      ▼
      • Hindi Riddles
    • Bollywood Puzzles
    • Alphabetical Puzzles
    • Aive hi Puzzles
    • Interview Puzzles
    • Logical Puzzles
    • Interview Questions
      ▼
      • Data Structures
      • Binary Tree
      • Algorithms
      • Recursion Questions
      • Amazon Interview Questions
      • Snapdeal Interview Questions
      • Google Code jam
    • Technical
    • Akbar and Birbal
    • Number Puzzles
    • Maths Puzzles
    • Miscellaneous