An ant had to travel from one corner of a room to diagonally
opposite corner. It can walk on walls, floor and roof only.
How will you find the shortest path for this ant ?

Answers were Sorted based on User's Feedback



An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / kelley w.

The room is a rectangular prism (like a cube only
rectangular). The 4 floor corners will be represented by
A,B, C, and D. The ceiling corners will be represented by
E, F, G, and H, with E being directly above A, F being
directly above B, Gbeing directly above C, and H being
directly above D. (Draw a picture, it helps) the ant needs
to go from the floor corner A to the ceiling corner G (if
I’m not mistaken). The shortest path would be a diagonal
line from A to G, but seeing as the ant cannot walk on air,
we have to find the quickest path using the walls, floor
and ceiling.
F__________G
/| /|
/B|________/_|C
E/_________H/ /
| / | /
|/_________| /
A D

The ant has four logical choices:

1) He could cross diagonally from A to C, then crawl
up the wall to G. We would have to find the length of
diagonal AC and the height of the room, which would be CG.
(He could also crawl up from A to E, and then diagonally
from E to G, but this would be the same distance as the
aforementioned choice.)
2) He could cross along the wall from A to D, then
crawl diagonally up the wall from D to G. We would have to
find the width of the room, which would be AD, and the
length of diagonal DG.
(He could also go diagonally from A to F, and then crawl
along the ceiling from F to G, but that would be the same
distance as the aforementioned choice.)
3) He could cross along the floor from A to B, then
crawl diagonally from B to G. We would have to find the
length of the room, which would be AB, and the length of
diagonal BG.
(He could also go diagonally from A to H, and then crawl
along the ceiling from H to G, but that would be the same
distance as the aforementioned choice.)
4) He could cross along the wall from A to the
midpoint of DH, then continue from the midpoint of DH to G.
We’ll call the midpoint of DH “M”. We would have to find
the width of the room, which would be AD, and half the
height of the room, which would be DM and HM. We would then
have to find the length of the diagonal AM, and then the
length of the diagonal MG.
(He could also go diagonally from A to the midpoint of BF
and then diagonally to G, but this would be the same
distance as the aforementioned choice.)
Using common sense, we can see that choice 4 will be the
quickest route for the ant. If you have trouble seeing how
this option is quickest, make up fake dimensions for the
room and find the values I mentioned above for each choice
to determine the shortest distance.
(For example, pretend the room is 5 feet high, 10 feet
wide, and 20 long. AE=5, AD=10, and AB=20.)

Is This Answer Correct ?    43 Yes 12 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / hemant from india

1. sqrt((a+b)^2+c^2),
2. sqrt((b+c)^2+a^2)
3. sqrt((c+a)^2+b^2)
which one is smaller in these is right answer

cos ant travels only thorough plane so , just unfold cuboid
u will find u have to add 2 dimensions and third dimension
in perpendicular direction and gets this ans

Is This Answer Correct ?    36 Yes 8 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / dhruv saksena

The ant will walk to the midpoint of the edge touching the corner opposite diagonally on the floor. From the mid point it will travel directly to its destination corner. this is the shortest distance possible for it to travel.

This can be calculated using a combination of differentiation and the Pythagoras theorem, it was in my test.

Is This Answer Correct ?    10 Yes 5 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / guest

Shortest path is always a straight line.
So do flat the room walls and floor and draw a straight line
between the opposite corners of the room. If room is not
cubical then that line will not pass through any edge of room.

Is This Answer Correct ?    24 Yes 23 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / jawahir kashim

Unfold the 3D cuboid into 2D. Let (A B C D,E F G H) be the edges of the cuboid.Such that A is below E and others edges resp.Unfold such that point A and its diagonal are in the same plane. The straight line joining A and G ie the diagonal in 2D is the shortest line.

Is This Answer Correct ?    2 Yes 4 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / avinash singh

shortest distance in a cube is diognaly. but ant cant fly. she can travel in a flor or roof diognaly from one corner to another one. and one side.
ex= if side is given 3. so diognaly on floor distance is 3 under root 2. and add one side is 3. so total distance is 3(1+under root 2).

Is This Answer Correct ?    3 Yes 5 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / suda

Insteatd of moving on wall and roof,If the ant moves in a
straight way in floor,it can reach the opp.corner
diagonally and it would be the shortest path for the ant.

Is This Answer Correct ?    24 Yes 28 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / devangini

There is no restriction on the way the ant can walk.

Consider the cuboid given in answer 3 and let X be the
midpoint of the surface ABCD. now the ant can walk from A to
X, X to D and D to G.

Is This Answer Correct ?    1 Yes 6 No

An ant had to travel from one corner of a room to diagonally opposite corner. It can walk on walls,..

Answer / guru

I tried with above 10,20, and % dimensions.But the shortest
is to move diagonally across the 2 longest dimensioned wall
(10 & 10) and then move straight..(5)

So its sqrt(10^2+20^2)+5 = 27.36
if you take any other method its beyond 30.2

So A to C and then G is shortest

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More Puzzles Interview Questions

Sarika multiplied 414 by certain number and obtained 69958 as the answer. But she found that there is some error in the answer - both the 9s in the answer are wrong and all the other digits are correct. Can you find the correct answer?

5 Answers   PayPal,


In country X, democratic, conservative and justice parties have fought three civil wars in twenty years. TO restore stability an agreement is reached to rotate the top offices President, Prime Minister and Army Chief among the parties so that each party controls one and only one office at all times. The three top office holders must each have two deputies, one from each of the other parties. Each deputy must choose a staff composed of equally members of his or her chiefs party and member of the third party. 1. When Justice party holds one of the top offices, which of the following cannot be true (a) Some of the staff members within that office are justice party members (b) Some of the staff members within that office are democratic party members (c) Two of the deputies within the other offices are justice party members (d) Two of the deputies within the other offices are conservative party members (e) Some of the staff members within the other offices are justice party members. 2. When the democratic party holds presidency, the staff of the prime minister's deputies are composed I. One-fourth of democratic party members II. One-half of justice party members and one-fourth of conservative party members III. One-half of conservative party members and one-fourth of justice party members. (a) I only (b) I and II only (c) II or III but not both (d) I and II or I and III (e) None of these 3. Which of the following is allowable under the rules as stated: (a) More than half of the staff within a given office belonging to a single party (b) Half of the staff within a given office belonging to a single party (c) Any person having a member of the same party as his or her immediate superior (d) Half the total number of staff members in all three offices belonging to a single party (e) Half the staff members in a given office belonging to parties different from the party of the top office holder in that office. 4. The office of the Army Chief passes from Conservative to Justice party. Which of the following must be fired. (a) The democratic deputy and all staff members belonging to Justice party (b) Justice party deputy and all his or hers staff members (c) Justice party deputy and half of his Conservative staff members in the chief of staff office (d) The Conservative deputy and all of his or her staff members belonging to Conservative party (e) No deputies and all staff members belonging to conservative parties.

0 Answers  


Vipul was studying for his examinations and the lights went off. It was around 1:00 AM. He lighted two uniform candles of equal length but one thicker than the other. The thick candle is supposed to last six hours and the thin one two hours less. When he finally went to sleep, the thick candle was twice as long as the thin one. For how long did Vipul study in candle light?

13 Answers   Cognizant,


There were N stations on a railroad. After adding X stations 46 additional tickets have to be printed. Find N and X.

2 Answers  


Yesterday in a party, I asked Mr. Shah his birthday. With a mischievous glint in his eyes he replied. "The day before yesterday I was 83 years old and next year I will be 86." Can you figure out what is the Date of Birth of Mr. Shah? Assume that the current year is 2000.

6 Answers  






At what time immediately prior to Six O'clock the hands of the clock are exactly opposite to each other. Give the exact time in hours, minutes and seconds.

1 Answers   Infosys, TVS,


greatest achievement in life

3 Answers  


9 9 9 9 5 5 5 5 3 3 3 3 1 1 1 1 is me se kin 6 number ka total 21 hota he..? its challange..

53 Answers   Bhel, TCS, TGB,


Q16. A sheet of paper has statements numbered from 1 to 40. For all values of n from 1 to 40, statement n says: 'Exactly n of the statements on this sheet are false.' Which statements are true and which are false?

6 Answers   TCS,


Montu, Bantu, Chantu and Pintu have pets. Montu says, "If Pintu and I each have a dog, then exactly one of Bantu and Chantu has a dog." Bantu says, "If Chantu and I each have a cat, then exactly one of Montu and Pintu has a dog." Chantu says, "If Montu and I each have a dog, then exactly one of Bantu and Pintu has a cat." Pintu says, "If Bantu and I each have a cat, then exactly one of Bantu and I has a dog." Only one of the four is telling the truth. Who is telling the truth?

2 Answers  


Three men - Sam, Cam and Laurie - are married to Carrie, Billy and Tina, but not necessarily in the same order. Sam's wife and Billy's Husband play Carrie and Tina's husband at bridge. No wife partners her husband and Cam does not play bridge. Who is married to Cam?

3 Answers   Accenture, Misys,


In the General meeting of "Friends Club", Sameer said, "The repairs to the Club will come to a total of Rs 3120 and I propose that this amount should be met by the members, each paying an equal amount." The proposal was immediately agreed. However, four members of the Club chose to resign, leaving the remaining members to pay an extra Rs 26 each. How many members did the Club originally have?

3 Answers  


Categories