You'll need to provide *much* more information than that to get help,
I'm afraid. Ask a precise question, providing appropriate background
information.
You'll need to provide *much* more information than that to get help,
I'm afraid. Ask a precise question, providing appropriate background
information.
This sounds like somebody trying to get help on a homework assignment.
I'm surprised he/she asked here. A couple google queries turned up a
lot of hits for the "The Sleepy Barber Problem" originally proposed by
Edsgar Dijkstra with solutions in various programming languages.