Adobe Interview Questions
- 0of 2 votes
Answershi guys ..hows the adobe recuitment first round will be like
- Ankit July 02, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Applications Developer - 5of 5 votes
AnswersWrite a program to replace each element of an array with a number present on the right side of the element such that the number is least greater than the element. If there is no greater number replace it with -1
- 3139a1m July 02, 2014 in India
e.g : 8, 58, 71, 18, 31, 32, 63, 92, 43, 3, 91, 93, 25, 80, 28
ans : 18, 63, 80, 25, 32, 43, 80, 93, 80, 25, 93, -1, 28, -1, -1
I gave the obvious o(n^2) solution. He asked to optimize it.| Report Duplicate | Flag | PURGE
Adobe SDE1 Algorithm - 0of 0 votes
AnswersWrite a program to replace each element of an array with a number present on the right side of the element such that the number is least greater than the element. If there is no greater number replace it with -1
- 3139a1m July 02, 2014 in India
e.g : 8, 58, 71, 18, 31, 32, 63, 92, 43, 3, 91, 93, 25, 80, 28
ans : 18, 63, 80, 25, 32, 43, 80, 93, 80, 25, 93, -1, 28, -1, -1| Report Duplicate | Flag | PURGE
Adobe SDE1 Algorithm - 0of 0 votes
AnswerWrite testcases for thermostat(that controls room temperature) that connects to web and server
- kancharlaratna June 25, 2014 in United States| Report Duplicate | Flag | PURGE
Adobe Quality Assurance Engineer Testing - 0of 0 votes
AnswerWrite a detailed test plan for the Language Detection API available at http://detectlanguage.com
- kancharlaratna June 25, 2014 in United States| Report Duplicate | Flag | PURGE
Adobe Quality Assurance Engineer Testing - 1of 1 vote
AnswersDivide an array of positive negative integers numbers, print all subsets that have sum = k
- Kavita June 19, 2014 in India
No can be repeated but subsets should be unique
Input:- {2,3,4,1,3,2,6,-1}, Sum = 5
Output:-
2,3
4,1
4,2,-1
6,-1
3,2,1,-1
2,2,1
3,3,-1
may be some more but i want all should be unique
3,2,1,-1 and 2,-1,1,3 are same so i not want u print it two time ...
you cannot store these subsets and later u compare for unique or not using previous generated subsets..| Report Duplicate | Flag | PURGE
Adobe Computer Scientist - 0of 0 votes
AnswersA matrix will be given which contains nos. and dots. will have to output another matrix in which the nos. are surrounded by single loop. the value of each number in a matrix equals the number of lines surrounding it.
- im.akki90 May 23, 2014 in India
Empty spaces in matrix/dots may be surrounded by any number of lines.
When completed, the solution forms a single continuous loop with no crossings or branches.
Value of each no. should connect the adjacent dots horizontally and vertically so that the lines form a simple loop with no loose ends based on the above rules.
eg
input Matrix
1.31.3
...3..
.3.21.
.02.1.
..2...
2.23.3
output Matrix
- -
1 .|3|1 .|3|
- - | - |
|. . .|3|. .|
| - - -
|.|3|. 2 1|.
- - - _
. 0 2 .|1 .|
- - - -
|.|.|2 . .|.
| - - -
|2 . 2|3|. 3|
- - - - -
i tried making rules and then call the function to make lines, but couldnt succeed in gettin desired output.
for any queries please comment| Report Duplicate | Flag | PURGE
Adobe Software Engineer / Developer Java - 0of 0 votes
AnswersA matrix will be given which contains nos. and dots. will have to output another matrix in which the nos. are surrounded by single loop. the value of each number in a matrix equals the number of lines surrounding it.
- im.akki90 May 23, 2014 in India
Empty spaces in matrix/dots may be surrounded by any number of lines.
When completed, the solution forms a single continuous loop with no crossings or branches.
Value of each no. should connect the adjacent dots horizontally and vertically so that the lines form a simple loop with no loose ends based on the above rules.
eg
input Matrix
1.31.3
...3..
.3.21.
.02.1.
..2...
2.23.3
output Matrix
- -
1 .|3|1 .|3|
- - | - |
|. . .|3|. .|
| - - -
|.|3|. 2 1|.
- - - _
. 0 2 .|1 .|
- - - -
|.|.|2 . .|.
| - - -
|2 . 2|3|. 3|
- - - - -
i tried making rules and then call the function to make lines, but couldnt succeed in gettin desired output.
for any queries please comment| Report Duplicate | Flag | PURGE
Adobe Software Engineer / Developer Java - 0of 0 votes
AnswersWrite a binary search function in C that will work for any datatype. You cannot accept the datatype in the function arguments.
- Sanyam Jain May 03, 2014 in India| Report Duplicate | Flag | PURGE
Adobe SDE1 - 0of 0 votes
AnswersWhich is better HashMap or HashTable? Why?
- kancharlaratna April 24, 2014 in United States| Report Duplicate | Flag | PURGE
Adobe Quality Assurance Engineer Testing - 0of 0 votes
AnswersWhen do you use HashMap?
- kancharlaratna April 24, 2014 in United States| Report Duplicate | Flag | PURGE
Adobe Quality Assurance Engineer Testing - 0of 0 votes
AnswersGiven a string of n characters how would you replace all occurrences of a particular character with some other character- with a time complexity less than O(n)?
- Pawan Kishor Singh April 23, 2014 in India
Note: W/o using any inbuilt string replace functions of the language.| Report Duplicate | Flag | PURGE
Adobe Coding - 1of 1 vote
AnswersGiven a sequence of n random numbers: suppose: 1,5,7,3,...
- anubhav.workemail April 18, 2014 in India
and n-1 symbols of <,> in the given fashion:
_<_>_>_>.....
the task is to fill the blank best possible time complexity. (I solved upto O(nlogn))| Report Duplicate | Flag | PURGE
Adobe Quality Assurance Engineer - 0of 0 votes
AnswersQ1. Given array a[]={'a','n','u','b','h','a','v'}
- anubhav.workemail April 18, 2014 in India
You have to generate a[]={'v','a','h','b','u','n','a'} in the same array with space complexity O(1). You may use just one bit extra.
Q2. perform the same operation with the same constraints for
array a[]={'m','y',' ','n','a','m','e',' ','i','s',' ','a','n','u','b','h','a','v'}
Q3 Perform the same operation with same contraints to arrange the words in alphabetic order, ie the output array should be:
a[]={'a','n','u','b','h','a','v',' ','i','s',' ','m','y',' ','n','a','m','e'}| Report Duplicate | Flag | PURGE
Adobe Quality Assurance Engineer Algorithm - 0of 0 votes
AnswersGiven a tree T of nodes such that each node contains a number. A set of nodes is a Largest independent set of T (i.e. there can be no common edge between the elements). Use dynamic programming to solve this.
- nesh2391 April 12, 2014 in United States
No recursion only loops and table must be used, you can recurse through the tree to fill some initial values in the table| Report Duplicate | Flag | PURGE
Adobe Developer Program Engineer Algorithm - 2of 2 votes
AnswersGenerate all numbers in ascending order which are having factors as 2,3 and 5. Discuss various approaches.
- Rahul Sharma March 21, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Member Technical Staff Algorithm - 0of 0 votes
AnswersGiven a couple of integer arrays A = {2, 4, 3, 5, 6, 8} & B = {9, 2, 7, 6} - Return the intersection of these arrays.
- Jeanclaude March 19, 2014 in United States
Once I provided a solution (which was n squared -O (n^2)) he followed up by asking me if I could make it linear (O(n)).| Report Duplicate | Flag | PURGE
Adobe Software Engineer / Developer Arrays - 0of 0 votes
AnswersWrite a method which will accept a string and return true if the string is a palindrome and false if it isn't.
- Jeanclaude March 19, 2014 in United States
Special conditions:
a) your method should consider lower case and upper case characters to be the same.
b) your method should ignore special characters and white spaces, for e.g. if your input were the strings were "Madam, I'm Adam!!", then you should consider it a palindrome and hence return true ignoring case and special characters. Same with inputs like "Ma'am", "boB" etc should return true.| Report Duplicate | Flag | PURGE
Adobe Software Engineer / Developer String Manipulation - 0of 2 votes
AnswersGiven a N*N adjacency matrix of graph I need to find the size of maximum set of vertices that do not share any common edge between any two vertices of the graph.
- justhack4fun688 March 10, 2014 in United States
Like : Say we have 3*3 matrix as
0 1 0
1 0 1
0 1 0
Then here answer is 2 as vertex 1 and vertex 3 dont have any edge in common.
I was asked this question in my interview to implement it in c++.| Report Duplicate | Flag | PURGE
Adobe Software Engineer / Developer Algorithm - 0of 0 votes
AnswersDesign a dialpad for a cellphone in a language which does not have conditional statements.
- anonymous February 18, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Member Technical Staff - 0of 0 votes
AnswersDesign a dialpad for a cellphone in a language which does not have conditional statements.
- anonymous February 18, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Member Technical Staff - 0of 0 votes
AnswersDesign a dialpad for a cellphone in a language which does not have conditional statements.
- anonymous February 18, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Member Technical Staff - 0of 0 votes
AnswersHow would you convert a program that runs on a little endian machine to work on big endian
- anonymous February 18, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Member Technical Staff Knowledge Based - 0of 0 votes
AnswersHow would you convert a program that runs on a little endian machine to work on big endian
- anonymous February 18, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Member Technical Staff Knowledge Based - 0of 0 votes
AnswerHow can you implement oops features in C?
- anonymous February 18, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Member Technical Staff Object Oriented Design - -3of 3 votes
Answerswhy will the code show error when tried to compiled
below given is a C program snippet to get height of a binary tree.int height (struct node * root) { if(root=NULL) return 0; else { return max(height(root->left), height(root->right))+1; } } int max(int a,int b) { return ((a>b)?a:b);
}
- gdg February 13, 2014 in United States| Report Duplicate | Flag | PURGE
Adobe Algorithm - 1of 1 vote
AnswersTo find loop in a circular linked list, we generally move two pointers , one with speed of one move at a time and other at two at moves at a time. Why do we use ratio 2:1. What can be the best ratio of speed to find a loop in linked list
- NIC January 30, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Member Technical Staff Problem Solving - 1of 1 vote
AnswersGiven N,find all a and b combination which satisfies a^3 + b^3 = N
- NIC January 30, 2014 in India| Report Duplicate | Flag | PURGE
Adobe Member Technical Staff Algorithm