Adobe Interview Question for Software Engineer / Developers






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

I think we can solve this problem using two logs...


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _D _ _ _ _L _ _ _ _ ( C )
| | |
| L | |
| | |L
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ |______________ |
| | ( A ) | L | ( B )
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| |_ _ _ _ _ _ _ _ _ _ _ _ _ _| |
| |
| |
| |
|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|



As we can see the distance between the squares is L. So it gives us the another square ABCD with sides length L.

now parallel to diagonal BD put a log at a distance slightly less than L/2 from C vertex. after that put another log along AC diagonal .
So that it makes " T " structure.

- patron May 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Alright....I am not able to draw the figure becoz it doesn't preserves the space.
But my point is, draw a square of Length L at any corner of the squares. where A is the vertex of inner square and C is the vertex of outer square.

then just follow the above procedure...

- Patron May 21, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Surround your code with

and

to preserve whitespace.

- Anonymous June 05, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

This solution is not mine but mayank on cc chat. He says that the wooden blocks L can be tilted so that we could use their hypotenuse which is definetely larger than L. It does not matter if the block is a rectangle or square shaped the diagonals is larger and we use them to cross the water.

- prolific.coder May 20, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Great, patron!

- nagabhushana.s July 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote
- Anonymous July 09, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

and     a,   b,,,,c

- Anonymous July 09, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _D _ _ _ _L _ _ _ _ ( C )
| | |
| L | |
| | |L
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ |______________ |
| | ( A ) | L | ( B )
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| |_ _ _ _ _ _ _ _ _ _ _ _ _ _| |
| |
| |
| |
|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|

- Anonymous July 11, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

bhai je kya hai ??

- Anonymous March 23, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

wow!!! Patron..soln was amazing

- Amit Priyadarshi July 18, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Cant we use the concept that wood floats.

- Jee_Knee_us August 06, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@ Patron not sure it would work...

L/squareroot(2) + L/(2*squareroot(2)) < L doesn't hold TRUE

- ravi September 09, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

{{ chillodi rocks }}

- Dr. :D May 29, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

nahi samajh aaya kucch.... patron bhaiya, fir se samjha do ek baar...

- chillodi January 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

{. hi . . }
{ . . }

- Anonymous July 29, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

As given in the problem,the length of the wooden block is L.Therefore,it should also have a width,let us say,"w"(coz it is a wooden block and therefore,is rectangular in shape).
Hence,the diagonal of the wooden block should be definitely greater than L.Hence,the wooden block should be tilted in a manner so that the tips of the diagonal are touching the land of each square.That is what mentioned by prolific.coder

- canmpuppala January 30, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

place a block on one corner of bigger block and now placed other block whose one end is on the center of this block and later on the smaller square

- rishi October 10, 2012 | Flag Reply


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