2
$\begingroup$

There are 16 baskets: 4 red, 4 blue, 4 green and 4 black. Each basket contains a ball from one of the 4 colours (see image). You can pick up a ball from one basket and swap it with a ball from another basket. What is least number of swaps needed to make every basket contain a ball of the same colour as the basket?

enter image description here

$\endgroup$
1
  • $\begingroup$ Don't you hate it when a puzzle requires so much longer to make (and draw!) than to solve? :( $\endgroup$ May 5, 2021 at 5:47

1 Answer 1

3
$\begingroup$

If the baskets are named with the rows and columns:

A B C D
E F G H
I J K L
M N O P

I will first try and swap the baskets' containers where the two will be solved with just 1 swap:

A<->E, J<->K, F<->O, G<->P

Then finish the puzzle with the smallest number of swaps:

D<->L, D<->H, B<->D

So the smallest number of swaps needed is

7 swaps!

EDIT: <-> is a swap, e.g. A<->B is basically swapping whatever's in A to B.

$\endgroup$
1
  • $\begingroup$ That is correct! Well done and welcome to Puzzling. $\endgroup$ May 1, 2021 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.