PuzzlersWorld.com

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

Four glasses on a square table

(5 votes, average: 2.80 out of 5)

April 15, 2013 by puzzler 4 Comments

four glasses on a square table puzzle, also known as the blind bartender’s problem

Four glasses are placed on the corners of a square table. Some of the glasses are upright (up) and some upside-down (down). You have to arrange the glasses so that they are all up or all down (while keeping your eyes closed all the time). The glasses may be re-arranged in turns subject to the following rules.

  1. Any two glasses may be inspected in one turn and after feeling their orientation you may reverse the orientation of either, neither or both glasses.
  2. After each turn table is rotated through a random angle.
  3. At any point of time if all four glasses are of the same orientation a ring will bell

You have to come up with a solution to ensure that all glasses have the same orientation (either up or down) in a finite number of turns. The algorithm must be non-stochastic i.e. it must not depend on luck.


See SolutionHide Solution
  1. On the first turn choose a diagonally opposite pair of glasses and turn both glasses up.
  2. On the second turn choose two adjacent glasses. At least one will be up as a result of the previous step. If the other is down, turn it up as well. If the bell does not ring then there are now three glasses up and one down(3U and 1D).
  3. On the third turn choose a diagonally opposite pair of glasses. If one is down, turn it up and the bell will ring. If both are up, turn one down. There are now two glasses down, and they must be adjacent.
  4. On the fourth turn choose two adjacent glasses and reverse both. If both were in the same orientation then the bell will ring. Otherwise there are now two glasses down and they must be diagonally opposite.
  5. On the fifth turn choose a diagonally opposite pair of glasses and reverse both. The bell will ring for sure.

You can read more about this puzzle on wikipedia.

  • Share on Whatsapp
  • Share on Facebook
  • Share on Twitter
Facebook Comments
Facebook
Next Puzzle
Inverted cards puzzle

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

Comments

  1. Anshul Rajvanshi says

    September 9, 2014 at 9:04 pm

    Try 2 glasses each time, if they are up facing, don’t do anything.Otherwise put a glass up when ever u get a chance , when the table is rotated. Easy!!

    Reply
  2. prateek says

    August 16, 2013 at 7:03 am

    Can the bartender not simply do this? If he feels up a glass and it is upside down, flip it up & if it up then let it stay up, and so on?

    Reply
    • Amit says

      September 8, 2013 at 11:30 am

      This will not work if bartender never hit the odd glass.

      Reply
    • venus says

      January 15, 2014 at 7:29 am

      this might cause a problem if for 1st time the table rotates clockwise and the next time it rotates anticlockwise,and so on. So, i think the above solution completely fits in.

      Reply

Leave a Comment Cancel reply

Submit your Puzzle

You may also like

  • Colour of the Bear?
  • Four glasses on a square table
  • Jelly beans
  • Paradox Dragons
  • Red and blue marbles
  • Zeroes in 100 factorial
  • Defective ball
  • Ants on a triangle
  • Another Bulb Problem
  • Inverted cards puzzle

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