Adobe Interview Question for Software Engineer / Developers






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

hey come on man..please refrain from using Hindi..not every here understands Hindi and it really comes across as stupid

- ABC May 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

But atleast you knew it is in hindi.

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

considering it was an array:
1. for any rotation subtract 1 from each item of an array except if you encounter 1; in case of 1 replace it by 9
2.

- cs June 22, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Use memmove()

- Sal June 23, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

can't we do it like this way
1. add 6 to each of the number and if sum>10 den set a[i]= (sum%10) + 1

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

reverse left and right.
Than reverse whole string

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

O(N) algorithm here it goes

Rotate(int beg, int mid, int last)
/*
beg = 0
mid = index of ele. which is to be made fst ele
last = No. of ele. {12, 22 , 35} last = 3
*/
{
  int next = mid;
  while(beg != next)
  {
    swap(arr[beg], arr[next]);
    beg++; next++
    if(next == last) next = mid;
    else if(beg == mid) mid = next;
  }
}

This is the algorithm used in C++ STL Rotate function. I hope interviewer wont expect better than this.

- Saumitra Bhave August 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The above mentioned algo will not work.
@saumitra, Can you make it work for 123456789 and i want to change it in 678912345.

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

Yes
123456789
Reverse : 987654321
Reverse first 4 chars: 678954321
Reverse last 5 chars : 678912345

- Anonymous September 18, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think saumitra's algo( used in C++ STL ) will work in that case too i.e., when 'next' crosses the last element, the array will be like this
678951234 but 'beg' is pointing to 5 and 'next' is set to mid which is pointing to 1 (the index where 6 was there originally) the while condition still holds true and the elements after swap will be 678915234 at this point since beg==mid mid is set to next and the rest of elements will be swapped the same way and when next becomes the last the array will be 678912345

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

Can Anyone Explain the Question pls..

- JIM January 09, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

exactly!!!! please explain the question!!!!!

- anonymous August 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