Applications Developer Interview Questions
- -2of 2 votes
AnswersGiven a string, write an algo and code to print all possible anagrams for given string.
- PKT March 23, 2014 in United States
for ex:
Given string: "amz"
Output:
amz
azm
maz
mza
zam
zma
Note: Write Algo and Code| Report Duplicate | Flag | PURGE
Amazon Applications Developer Algorithm - -1of 3 votes
Answershow to print this pattern
- premnath.velmurugan March 08, 2014 in India
input N=4
output :
4444444
4333334
4322234
4321234
4322234
4333334
4444444
input N=3
output :
33333
32223
32123
32223
33333| Report Duplicate | Flag | PURGE
Software Trainee Algorithm C# Data Structures Applications Developer Java - 0of 0 votes
AnswersA typical Change Making problem but a bit twisted. Given a large amount and the denominations given, I need to come up with total number of ways in which the amount can be made using RECURSION. The signature of the function is as follows
- ishan.4525 January 27, 2014 in India
int makeChange(int Amount, int[] Denominations)A
Amount-Total Amount
Denominations- The available denominatins.
It returns total number of ways.. make sure this has to be done Using Recursion..| Report Duplicate | Flag | PURGE
Morgan Stanley Applications Developer Algorithm - 0of 0 votes
AnswerI wanted to know if someone knows how to solve this algorithm in C#!!!
- andrew.coleman330 January 24, 2014 in United States for Andrew
I do not know this programming language that well and need it converted, you do not have to solve the algorithm but it would help if you can!
// You are free to implement the solution in C, C++ or C#.
// You are given a set of numbers stored in your own implementation of queue
// and another set of numbers stored in your own implementation of stack.
// The goal is to calculate the sum of those two sets of values.
// NOTE: You must implement your own Queue and Stack.
//
// Inputs:
// num1 = 123456
// num2 = 654321
// Output:
// result = 777777
#include <stdio.h>
#include <tchar.h>
//yourQueue implementation
//yourStack implementation
// Please use either String or char*
char *yourAdd (yourQueue *num1, yourStack *num2)
{
char *result = 0;
// Your code.
return result;
}
void main(int argc, _TCHAR* argv[])
{
yourQueue *num1; //should only be able to push 0-9. num1->push(10) is invalid
num1->push(1);
num1->push(2);
num1->push(3);
num1->push(4);
num1->push(5);
num1->push(6);
yourStack *num2; //should only be able to push 0-9. num2->push(10) is invalid
num2->push(1);
num2->push(2);
num2->push(3);
num2->push(4);
num2->push(5);
num2->push(6);
char *result = yourAdd(num1, num2);
printf("result: %s\n", result);
}| Report Duplicate | Flag | PURGE
Hewlett Packard Applications Developer Algorithm - 0of 0 votes
AnswersWrite a function to check if two rectangles defined as below, have common area or not. The functions take the top left and
- chhatreshpatel January 17, 2014 in United States
bottom right coordinate as input and return 1 if they have common area, otherwise return 0.
// you can write your additional functions here
int doesRectOverlap(rect ra, rect rb){
/* For your reference
struct rect{
int topx,topy,botx,boty;
};
The above has already been declared please do not redclare */| Report Duplicate | Flag | PURGE
Amazon Applications Developer C - 0of 0 votes
AnswersYou have given a number, rearrange the digits of given number and find the next large number.
- PKT January 13, 2014 in India
For example given number is 2576
the next large number is 2657
code is not required approach or algo is enough.| Report Duplicate | Flag | PURGE
Amazon Applications Developer - 0of 0 votes
Answersdesign a data structure to store time series and implement add operation
- rajkobie95 December 16, 2013 in United States| Report Duplicate | Flag | PURGE
Microsoft Applications Developer - 0of 0 votes
AnswersPrinting diagonals of a matrix
- rajkobie95 December 14, 2013 in United States| Report Duplicate | Flag | PURGE
Microsoft Applications Developer Algorithm - 0of 0 votes
AnswersHow would you structure the game of life (classes, functions etc...)? How would you structure the board if it was played on a sphere?
- rajkobie95 December 14, 2013 in United States| Report Duplicate | Flag | PURGE
Microsoft Applications Developer Brain Teasers - 0of 0 votes
AnswersFind the degree of separation between two people (e.g. LinkedIn's connected feature)
- rajkobie95 December 14, 2013 in United States| Report Duplicate | Flag | PURGE
Microsoft Applications Developer Brain Teasers - 0of 2 votes
AnswersImplement your own sizeof operator using bitwise operation .
- nehalkumar6 December 04, 2013 in India| Report Duplicate | Flag | PURGE
Qualcomm Applications Developer Bit Manipulation - -1of 1 vote
Answersalgorithm to reverse a singly linked list using one pointer without any additional datastructures
- abhirpnk October 31, 2013 in India| Report Duplicate | Flag | PURGE
Amazon Applications Developer Algorithm - -1of 1 vote
Answerswrite a program that will analyse the string....
- Anonymous October 15, 2013 in India
char str[90]="my brother is taller than me@1233334. I always a short man,but smart than him";
1)Remove spaces between words,
2)Find the longest word in the String,
3)Search and count the number of letters"e" in the string 4)Extact the number of integers in string
5)Extract the number of doubles in string
6)Extract the number of words in string
7)Identify the number of sentences in the String.| Report Duplicate | Flag | PURGE
Athena Health Applications Developer - 0of 0 votes
Answerswrite a program that will analyse the string....
- Anonymous October 15, 2013 in India
char str[90]="my brother is taller than me@1233334. I always a short man,but smart than him";
1)Remove spaces between words,
2)Find the longest word in the String,
3)Search and count the number of letters"e" in the string 4)Extact the number of integers in string
5)Extract the number of doubles in string
6)Extract the number of words in string
7)Identify the number of sentences in the String.| Report Duplicate | Flag | PURGE
Athena Health Applications Developer - 1of 3 votes
AnswersInput - List<String> ["star", "rats", "ice", "cie", "arts"]
print all anagrams in buckets:
["star", "rats", "arts"]
["ice", "cie"]
The signature of unimplemented method is given:public void anagramBuckets(List<String> input);
I was given this question during phone interview.
- sunnyhust2005 October 12, 2013 in United States for Facebook Android| Report Duplicate | Flag | PURGE
Facebook Applications Developer Algorithm - 0of 0 votes
AnswersFibonacci Numbers: A number is said to be Fibonacci number if it follows the fibonacci property. (Ex: 112, 1123, etc). But additionally, it need not necessarily start with 1, as with the normal fibonacci series. So, in this new definition, 112(1,1,2) is a fibonacci number and so is 121224(12,12,24), and so is 252550(25,25,50). So, given any two numbers as input, print out all the Fibonacci Numbers within that range..
- therethere October 11, 2013 in United States| Report Duplicate | Flag | PURGE
Adobe Applications Developer Algorithm - -4of 4 votes
AnswersWhat should be strategy to minimise the impact on external system which is using our table's data for processing?
- java.interviews.questions October 07, 2013 in India| Report Duplicate | Flag | PURGE
Nomura Applications Developer Database - -3of 3 votes
AnswersWhat is spring Initialization Bean interface?
- java.interviews.questions October 06, 2013 in India| Report Duplicate | Flag | PURGE
Citigroup Applications Developer Java - -3of 3 votes
Answerswhat is generic Eraser in java?
- java.interviews.questions October 06, 2013 in India| Report Duplicate | Flag | PURGE
Citigroup Applications Developer Java - -3of 3 votes
Answersdecide collection in java where you can store this range based search?
- java.interviews.questions October 06, 2013 in India
age range : group id
0-25 : 1
26: 50 : 2
> 51 : 3
best way to store this DS and In search input is age and we should get group id?| Report Duplicate | Flag | PURGE
Citigroup Applications Developer Java - -3of 3 votes
Answerwhen to use serialization vs externalizable interface?
- java.interviews.questions October 06, 2013 in India| Report Duplicate | Flag | PURGE
Citigroup Applications Developer Java - -3of 3 votes
AnswersIf new object is created by thread then where object's attributes are going to be created? stack or heap?
- java.interviews.questions October 06, 2013 in India
class Myclass{
String data;
MyObject object;
public void mehtod(){
data = new String("ddd");
object = new MyObject();
int i = 10;
}
Suppose now thread A creates object of this class and calls method() then where data, object and i will be created? heap or stack of thread?| Report Duplicate | Flag | PURGE
Citigroup Applications Developer Java - 0of 0 votes
AnswersHOW TO RETRIEVE THOSE EMP NAMES WHO ARE BELONG TO THE DEPT HAVING MAXIMUM EMPLOYEE
- sikhamanjarim@riseglobal.net September 19, 2013 in India| Report Duplicate | Flag | PURGE
Applications Developer - 0of 0 votes
AnswersHow reverse key index helps in faster data reading and what is use case for this?
- java.interviews.questions September 18, 2013 in India
Complexity of B tree index?| Report Duplicate | Flag | PURGE
Goldman Sachs Applications Developer Database - 0of 0 votes
AnswersExplain Hash and how hashing works?
- java.interviews.questions September 18, 2013 in India
Another question was on why HashMaps stores same hashcode entry in map as linkedlist, why not it is storing as ArrayList?| Report Duplicate | Flag | PURGE
Goldman Sachs Applications Developer Algorithm - 0of 0 votes
AnswersExplain Quick sort and how to choose Pivot value in this sorting.
- java.interviews.questions September 18, 2013 in India| Report Duplicate | Flag | PURGE
Goldman Sachs Applications Developer Algorithm - -2of 2 votes
AnswersAdd the ODD ORDERED elements in a matrix.But the intersecting(middle) element must be added only once.
- Anonymous September 15, 2013 in India
Ex:
467
932
148
in this matrix 4,7,3,1,8 are odd indexed or odd ordered elements;We have to add them but,
###constraint ###
intersecting(middle) element must be added(used) only once.| Report Duplicate | Flag | PURGE
Amazon Applications Developer C - 1of 1 vote
AnswersReverse String Ex: "Hello World" into "World Hello"
- priti2.jain August 16, 2013 in United States| Report Duplicate | Flag | PURGE
McAfee Applications Developer Algorithm - 1of 3 votes
AnswersWrite a function to find 5th element from a singly linked List from the end(not from the head) in one pass.
- priti2.jain August 16, 2013 in United States| Report Duplicate | Flag | PURGE
McAfee Applications Developer Linked Lists