CrazyEngineers
  • Black or White Pebble

    Updated: Oct 21, 2024
    Views: 1.2K
    There is a bowl containing black and white pebbles. You pick up two pebbles randomly at a time.

    1. If both are white, you throw away both of them.
    2. If one black and one is white, you throw away the black one and put the white pebble back into bowl.
    3. If both of them are black, you throw away one of them and put the other back into the bowl.

    If you try this with some given count of x black and y white pebbles in a bowl, what will be the color of last pebble left and why?

    -Pradeep
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • tech_vaibhav_ee

    MemberJun 29, 2009

    if initial no. of white balls:
    1> odd ....then last ball would be white
    2> even...then last ball would either be black or no ball would be left..

    hint: since the only way to remove white balls is in a pair...therefore if initially the no of white balls were even , then they would always be even...and the same for odd....
    Are you sure? This action cannot be undone.
    Cancel
  • pradeep_agrawal

    MemberJun 30, 2009

    That's a correct answer with correct reason behind the behavior.

    Awesome buddy.

    -Pradeep
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register