Tech Interview

Chameleons

At one point, a remote island’s population of chameleons was divided as follows:

Each time two different colored chameleons would meet, they would change their color to the third one. (i.e.. If green meets red, they both change their color to blue.) is it ever possible for all chameleons to become the same color? why or why not?”


Solution

I haven’t written up a solution for this yet, but smarter people than I have described some on the discussion forum. You can read their thoughts here.

Exit mobile version