Adobe Interview Question for Software Engineer / Developers






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

Part 1 can be solved by using simple dynamic programming technique. It's in Mark Allen Weiss text book.

The second problem can be solved in variety of ways and there is O(m*n) algo to solve the second question too. It is same as this problem CTGAME in spoj online judge

- python.c.madhav November 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Can u provide me the source code for this program as i am not having that book , also not able to solve this

- saraswat.pragya February 19, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

@above ..cn u discuss d 2nd question's solution..

- dev November 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@above: Please explain the solution for the second part...with example..

- Ankit November 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

for 2:

fist think about how to find the largest rectangle in a histogram. (search HISTOGRA in spoj)

then think about how to extend the 1D largest rectangle thing into a 2D scenario. (search CTGAME in spoj)


other problems that you can relate to this question:
1. given an array, find the largest sum over a sliding window
2. given an matrix filled with negative or positive values, find the rectangle with the maximum sum of elements within

- Anonymous November 23, 2010 | 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