Mar 20, 2010

Traffic Jam

Here is a problem… Work for your mind

There are 4 persons standing in each side of a empty space where are 4 in one side is in same direction

1 2 3 4 _ 5 6 7 8
-> -> -> -> _ <- <- <- <-

Here are the only allowed movements
1. If a person is facing the empty space directly, then he can move into it.
2. If a person(1) has another person(5) in the opposite direction next to him & if 5 has empty space next to him, then 1 can jump on top of 5 to the empty space.

The required end result it
5 6 7 8 _ 1 2 3 4

Try…

No comments: