@Bittu. Unfold the room. Supposing that the 4x5 plane is the floor,
then the adjacent walls are 3x4 and 3x5:

+----+
|    |
|    |
+----+
|    |
+----+

or

+----+--+
|    |  |
|    |  |
+----+--+

The paths between opposite corners of the room map into paths from
opposite corners of these figures.
The shortest path in each figure is the diagonal. One is of length
sqrt(5^2 + 7^2) and the other is of length sqrt(4^2 + 8^2). The former
is the shorter.

Dave


On Dec 31, 4:46 am, bittu <shashank7andr...@gmail.com> wrote:
> 2nd puzzle
>
> An ant has to crawl from one corner of a room to the diametrically
> opposite corner as quickly as possible. If the dimensions of the room
> are 3 x 4 x 5, what distance does the ant cover?

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to