Adobe Interview Question Developer Program Engineers


Country: India
Interview Type: In-Person


Comment hidden because of low score. Click to expand.
7
of 7 vote

Its simple . Just open the cube box . and join the two diagonally opposite corners .
I mean first ant will move to the middle of the opposite side on the same plane from the staring point .
Then from that point , it'll start move to the corner (which lies diagonally opp to the starting point )
Total length covered = a*(5^0.5)

- Barney on July 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Can you elaborate it???

- Anonymous on July 03, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Good answer @Barney

The thing will be like this

First ant will reach at the opposite side of the same plane with respect to the corner in which it's right now.
So then distance covered (If A is the length of one side):
X1=A*(5^(.5))/2
Then again he will move in the same way:
X2=A*(5^(.5))/2

So total distance = A*(5^(.5))

- Soham.m17 on July 23, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

In case of cube the minimum distance is daignal of the cube but as mention in question that ant cant fly so we will first cover the daignal of the surface in which ant is placed currently then we will cover the edge that is luying to the target corner from the current position

- priyanka on July 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Just check the total distance covered . Because as per my illustration , distance covered is a*(5^0.5)

- Barney on July 03, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

oh yes answer would be a*(5^0.5)

- Luv on July 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

a*(5^0.5)

- at on July 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

a*(5^0.5) it is...

- atul gupta on July 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

shortest distance would be=diagonal of the surface+edge
diagonal of the surface=sqrt(2)a
edge =a
shortest distance = a(sqrt(2)+1)

- manishsharma16 on July 04, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

U r incorrect .

- Barney on July 04, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

please explain why?

- Anonymous on July 04, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

bbc.co.uk/schools/ks3bitesize/maths/images/net_of_a_cube.gif

this image show the 3D and 2D view of cube. Mark the diagonals and you will get the answer

- Read Fox on August 28, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

i am getting : a*( (1+ sq-root(2))/2) + 1) which is definitely less then a a*(5^0.5)

move half distance along the edge parallel to horizontal plane and then hypotenusely(a/sq-root(2)) to the lower corner(which is 'a' distance from the destination) , now calculate.

- Anonymous on July 14, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The above answer is correct

- Anonymous on July 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Answer should be 3^0.5 * L
l is length of cube

- Piyush on September 09, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. An ant lives on the surface of a cube with edges of length 7cm. It is currently
located on an edge x cm from one of its ends. While traveling on the surface of the
cube, it has to reach the grain located on the opposite edge (also at a distance xcm from
one of its ends) as shown below.
(i) What is the length of the shortest route to the grain if x = 2cm? How many routes
of this length are there?
(ii) Find an x for which there are four distinct shortest length routes to the grain.

- sayantan adhikary on December 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

It would be (2^0.5 +1)*a

- Luv on July 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

my ans is the shortest one .

- Barney on July 03, 2012 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book walking you through getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More