Developer Program Engineer Interview Questions
- -1of 1 vote
Answerswrite a program to print the given string as alphabets in order next integres fallowed by sum
- Anonymous April 21, 2012 in India
example: CAE2W3A is input and output should be
ACDEW5| Report Duplicate | Flag | PURGE
Facebook Developer Program Engineer Arrays Coding - 0of 0 votes
AnswersIf given a variable that is changing after every 1 second...
- ediston April 17, 2012 in United States
Design a clock using that avriable..
I am not sure if this question was more related to OS or not...| Report Duplicate | Flag | PURGE
Google Developer Program Engineer Operating System - 0of 0 votes
AnswersThere is a tree with additional field in each node, named "next". We have to put the inorder successor in this pointer.
- Msharma April 17, 2012 in India| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer Algorithm - 0of 0 votes
Answersprint a tree with label wise in given that scenario
- masoom April 12, 2012 in India
15
12 23
9 16 17 35| Report Duplicate | Flag | PURGE
Developer Program Engineer Java - 0of 0 votes
Answersthere two article:A ,B,which is very large. get three or more successive words in A,to find if it appears in B ,and count the times. For example , 'book' 'his' 'her' appear in A ,how many times it appears in B?
- onemailofg April 11, 2012 in United States| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer - 0of 0 votes
Answersthere two article:A ,B,which is very large. get three or more successive words in A,to find if it appears in B ,and count the times.
- onemailofg April 11, 2012 in United States
For example , 'book' 'his' 'her' appear in A ,how many times it appears in B?
I give a solution which time complexity is not good,who can give a better solution ?| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer - 0of 0 votes
AnswersHow can we avoid a stack overflow ?
- pnkjtr March 20, 2012 in India
The problem is like this. Lets say I have a method A() invoked from main(). Now A() invokes B(), B() inturn invokes C() ... keep going...
so the current process stack will have limited capacity to accomodate all the activation frames that are being created dynamically when each new method is invoked.
so if this continues, at one point of time, stack will exhaust. so whats the method to handle this.
The very simple example can be:
void main (){
main();
return 0;
}
if you run this, we can see the error as run time error for stack overflow. in such scenario whats the optimal way to deal with it?| Report Duplicate | Flag | PURGE
Developer Program Engineer C - 0of 0 votes
AnswersYou will find an incomplete class that represents a bounded queue BoundedQueue<T>. A main function is provided that tests the creation and usage of an instance of the BoundedQueue<T>. Implement the required functions such that the class compiles cleanly, the program runs, and all of the tests pass. Do not use any other classes or packages.
- joy080919 March 07, 2012 in India| Report Duplicate | Flag | PURGE
Developer Program Engineer Algorithm - 0of 0 votes
Answerscode for MS Paint program. N*N pixels area. given pixel and color, change color in pixel to desired color and if adjacent pixels are of same color change them too. efficient algorithm with place and time complexity
- helpme March 01, 2012 in United States| Report Duplicate | Flag | PURGE
Adobe Developer Program Engineer Algorithm - 0of 0 votes
Answerswrite a program to print the given string as alphabets in order next integres with sum next special characters
- kiran February 29, 2012 in India
example: CAE2W3@D# as input and output should be
ACDEW5@#| Report Duplicate | Flag | PURGE
Sapient Corporation Developer Program Engineer Arrays - 0of 0 votes
Answerswrite a program to print checksum for given number
- kiran February 29, 2012 in India
by taking last digit sapeate and if sum of squares of remaining numbers are equal to previous last number then print valid checksum else invalid
example: 321543 take 3 saperately and
let sum of squares be 3^2+2^2+1^2+5^2+4^2 == 3(last digit) then print valid checksum otherwise invalid| Report Duplicate | Flag | PURGE
Sapient Corporation Developer Program Engineer Arrays - 0of 0 votes
AnswersThe root node in the tree is equal to sum of its all descendants and the leafs are assigned value 0, so if your tree is something like 10
- sumit February 21, 2012 in India
20 30
40 50
output will be
140
0 90
0 0| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer - -1of 1 vote
AnswersIn the page 90 of Gayle's cracking the coding interview book, there was a method defined which is used to get the bit at particular position. Method goes like this...
- mooveprince February 20, 2012 in India
boolean getBit(int num, int i) {
return ((num&(1<<i))!=0);
}
Will this works..? if my number is 8 and I want to get the 3rd position, this return a wrong result| Report Duplicate | Flag | PURGE
CareerCup Developer Program Engineer Bit Manipulation - 3of 3 votes
Answersone unsorted array is given.Find out the index i and j ,j> i for which a[j] - a[i] is maximum.perform in linear time complexity
- rahul baid February 17, 2012 in India| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer Data Structures Arrays - 0of 0 votes
Answerswrite algo for longest palindrome?
- tomb February 16, 2012 in India| Report Duplicate | Flag | PURGE
Walmart Labs Developer Program Engineer Algorithm - 0of 0 votes
AnswersA number is given asked to find the all combination with permutation from the digit which makes the sum equal to given number for example for number 4
- Mohd Mukeem February 10, 2012 in India
1 1 1 1
1 1 2
1 2 1
2 1 1
2 2
1 3
3 1
if number is 5
then output should be
1 1 1 1 1
2 1 1 1
1 2 1 1
1 1 2 1
1 1 1 2
3 1 1
1 3 1
1 1 3
2 3
3 2
1 4
4 1
1 2 2
2 1 2
2 2 1| Report Duplicate | Flag | PURGE
Developer Program Engineer - 0of 0 votes
AnswersSwap 2 variables without using a temporary variable
- Anony February 03, 2012 in United States| Report Duplicate | Flag | PURGE
EMC Developer Program Engineer - 0of 0 votes
AnswersThe columns that I get in a table after a clustering process is not specific but varies from 150 to 210. I need to get the column name that has the max value for each row and add that column name to a target column..
- amruth.s@flipkart.com January 17, 2012 in India
Schema looks like this
cluster_name ---> varchar(20)
col1 ----> decimal
col2 ----> decimal
...
coln ----> decimal
The result of the query should look like this
cluster_name -----> varchar(20)
col_name(that had the max value for that row)------> varchar(20)
col_max(max value across all columns for that row)-------->decimal
should use only mysql query..| Report Duplicate | Flag | PURGE
Flipkart Developer Program Engineer Database - 0of 0 votes
AnswersI want to design log in service for banking site.
- amitnagar21 January 05, 2012 in India
Design consideration :
1. If User try 5 times wrong password than he should block for 1hr
2. User can try log in from different browser too
3. User can log in again with correct password after 1 hr if he lock on last attempt.
Solution consideration :
1. How to design the data structure for maintaining the user sign in
2. How to design thread or any service which can remove the user from data structure after 1 hr| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer - 0of 0 votes
AnswersWhy linux is more stable than windows ?
- lipun4u December 03, 2011 in India| Report Duplicate | Flag | PURGE
Manhattan associates Developer Program Engineer Operating System - 0of 0 votes
Answerswhat are the stuffs a compiler provide to a class ?
- lipun4u December 03, 2011 in India| Report Duplicate | Flag | PURGE
Manhattan associates Developer Program Engineer C++ - 0of 0 votes
AnswersWhat is the disadvantage of normalization ?
- lipun4u December 03, 2011 in India
Why can't we follow normalization always ?| Report Duplicate | Flag | PURGE
Manhattan associates Developer Program Engineer Database - 0of 0 votes
AnswersWhat is critical section ?
- lipun4u December 03, 2011 in India| Report Duplicate | Flag | PURGE
Manhattan associates Developer Program Engineer Threads - 0of 0 votes
AnswerWrite an algorithm to avoid and detect deadlock in C++ ?
- lipun4u December 03, 2011 in India
What is Banker's algorithm ?| Report Duplicate | Flag | PURGE
Manhattan associates Developer Program Engineer Threads - 0of 0 votes
AnswersThere is a pool of memory with a specific address. How to make sure the object is always created in that part of memory ?
- lipun4u December 03, 2011 in India| Report Duplicate | Flag | PURGE
Manhattan associates Developer Program Engineer C++ - 0of 0 votes
AnswersHow to forbid the creation of object in
- lipun4u December 03, 2011 in India
1>Stack
2>Heap
?| Report Duplicate | Flag | PURGE
Manhattan associates Developer Program Engineer C++ - 0of 0 votes
AnswersHow to restrict a function so that in can't throw any kind of exception ?
- lipun4u December 03, 2011 in India
How to restrict a function so that it can throw the exception of a particular type ?| Report Duplicate | Flag | PURGE
Manhattan associates Developer Program Engineer C++ - 0of 0 votes
AnswersTest cases for chat application (lyk MSN ,YAHOO CHAT,GTALK etc).
- msankith October 30, 2011 in India| Report Duplicate | Flag | PURGE
Microsoft Developer Program Engineer Testing