PuzzlersWorld.com

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

Cube Puzzle

(2 votes, average: 3.00 out of 5)

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

  • Share on Whatsapp
  • Share on Facebook
  • Share on Twitter
Facebook Comments
Next Puzzle
100 doors

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

Comments

  1. manish narang says

    April 12, 2016 at 12:37 pm

    Let the six faces be a, b, c, d, e and f. With face a opposite face b, there are six arrangements for the other four colors around the cube: cdef, cdfe, cedf, cefd, cfde and cfed. Likewise for face a opposite face c; face a opposite face d; face a opposite face e; face a opposite face f; all have six arrangements for the remaining four colors. Hence the total is 5 x 6 = 30 arrangements.

    Reply
  2. Dheeraj says

    September 18, 2014 at 5:44 pm

    this can be solved by fixing one color and taking combination by fixing another color to opposite side 5 possiblities and arrnging ramaining 4 in 4!.
    So total Combinations will be
    5*4!

    Reply
  3. Anand says

    March 9, 2014 at 6:03 pm

    Can also be solved by permutation.

    Reply

Leave a Comment Cancel reply

Submit your Puzzle

You may also like

  • GPS and Battery Puzzle
  • Balls in a bag
  • 4 bottles and water puzzle
  • What did the peasant said?
  • Divide a triangle into n triangles
  • Find celebrity in the party
  • Red and blue marbles
  • Paradox Dragons
  • 100 doors
  • Colour of the Bear?

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