PuzzlersWorld.com

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

Balls in a bag

(2 votes, average: 3.00 out of 5)

November 30, 2007 by Ankur 4 Comments

You have 20 blue balls and 14 red balls in a bag. You put your hand in and remove 2 at a time. If they’re of the same color, you add a blue ball to the bag. If they’re of different colors, you add a red ball to the bag. (assume you have a big supply of blue & red balls for this purpose. note: when you take the two balls out, you don’t put them back in, so the number of balls in the bag keeps decreasing). What will be the color of the last ball left in the bag?

Once you tackle that, what if there are 20 blue balls and 13 red balls to start with?

See Solution : Balls in a bagHide Solution

There are 3 possible cases of removing the two balls…

a) If we take off 1 RED and 1 BLUE, in fact we will take off 1 BLUE
b)If we take off 2 RED, in fact we will take off 2 RED (and add 1 BLUE)
c) If we take off 2 BLUE, in fact we will take off 1 BLUE
So In case of (a) or (c), we are only removing one blue ball, but we always take off red balls two by two.

1) 20 Blue, 14 Red balls

If there are 14 (even) number of red balls, we can not have one single red ball left in the bag, so the last ball will be blue.

2) 20 Blue, 13 Red balls

Now as the no. of red balls is odd, there will be one single red ball in the bag with other blue balls, and whenever we remove 1 red and 1 blue ball, we end up taking off only the blue ball. So the red ball will be the last ball in the bag.
  • Share on Whatsapp
  • Share on Facebook
  • Share on Twitter
Facebook Comments
Next Puzzle
Ants on a triangle

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

Comments

  1. Balaji says

    July 8, 2015 at 10:13 am

    Got it

    Reply
  2. Balaji says

    July 8, 2015 at 10:03 am

    Can anyone explain me how to remain red for 20blue and 14 red

    Reply
  3. aznSlayer says

    March 29, 2014 at 10:23 am

    i think the solution is the other way round i.e for 20,14 its red and for 20,13 its blue.
    Please verify and let me know if i am wrong

    Reply
    • aznSlayer says

      March 29, 2014 at 10:30 am

      sorry this is correct ,my bad

      Reply

Leave a Comment Cancel reply

Submit your Puzzle

You may also like

  • King and wine bottles
  • Cook the egg for 15 minutes puzzle
  • Colour of the Bear?
  • n bulbs in a circle puzzle
  • Ants on a triangle
  • 1-40 litres of milk in drum puzzle
  • Daughter’s ages
  • Jelly beans
  • Find celebrity in the party
  • 4 bottles and water 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