Adobe Interview Question for Software Engineer / Developers






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

max sum of rows u mean?

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

I think its maximum sum of a sub matrix

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

int arr[SIZE]={12,34,32,-101,23,45,32,-56};
int maxsum=0;
int start=0;
int end=0;
int rec =0; int currentsum=0;
for( int i=0;i<SIZE;i++)
{
currentsum+=arr[i];
if(currentsum>maxsum)
{
maxsum=currentsum;start=rec; end=i;

}
else if(currentsum<0){
rec=i+1;
currentsum=0;
}

}
printf("max sum =%d", maxsum);
printf("\n indexes =%d,%d", start,end);

- Crazy Frog February 19, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

That's not a matrix. That's what happens when you mug up answers and spew them out without understanding :)

- Anonymous March 09, 2011 | 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