This is the same as the
Turning Train problem, except this
time there is an engine, a railway car and a caboose.
The train in the upper illustration must turn around and head back to
Edmonton. After turning, the train and the railway car should be
facing towards Edmonton as shown in the lower illustration. The engine
and the railway car can be coupled and uncoupled in any way. The
engine can push and pull with its front end as well as its back end.
There is just enough room for one car or engine on the straight part
of the sliding, and enough room for both the engine and the car at the
other straight part of the track past the sliding. While the car and
engine are being moved to their new positions, they can face different