There are 3 bags on the table. The first bag contains a white ball and a black ball. The second bag contains two white balls. The third bag contains two black balls. They are all labelled on the outside accordingly.
Mr. Mallory comes and switches all the labels, so that they are all wrong.
You come along to the scene, aware of what Mr. Mallory did. Unfortunately, you do not know the original arrangement of the labels.
How many balls must you pick out from the bags before you can recover the original arrangement of the labels?
Labels
algorithm
allegro
anime
api
arcade
asdf
blender
books
boost
bootstrap
c
c++
CLR
cmake
cmd
common lisp
concepts
css
detective
emacs
free
games
graphical programming
graphics
gui
haskell
html
hyper-v
interpersonal skills
jade
jam
java
javascript
jni
jpostal
leadership
libpostal
library
linux
lsp
lsp-mode
management
maths
mingw
msvc
msys2
music
network
oop
open source
party games
phaser
postgresql
programming
promote
puzzle
quickfix
recommended
recorder
reference
review
sdl2
self-help
setup
sheet music
slime
team building
tidbits
tools
travel
tutorial
typescript
unity
vb
vm
web pages
winapi
windows
windows 7
windows 8.1
The solution can be found here: http://hectorhon.blogspot.com/2013/10/picking-balls-from-bags-solution.html
ReplyDelete