Adobe Interview Question for 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 July 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Can you elaborate it???

- Anonymous 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 July 23, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Hi,
Another simpler approach could be:
just find out the horizontal and vertical distance covered by the ant
Horizontal distance: a + a
Vertical distance: a
Then apply pythagoras theorem
((2a)^2 + a^2)^0.5 = a*(5^0.5)

You can apply this approach to all the similar questions...

- Mayank October 30, 2014 | 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 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 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 July 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

a*(5^0.5)

- at 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 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 July 04, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

U r incorrect .

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

please explain why?

- Anonymous 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 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 July 14, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The above answer is correct

- Anonymous 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 September 09, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The shortest distance will be sqrt(5)(a)

- Vaibhav Raj March 07, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

what if it is a cuboid?????

- peace March 15, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

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

- Luv 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 July 03, 2012 | Flag


Add a Comment
Name:

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

Books

is a comprehensive book on 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