Applications Developer Interview Questions
- 0of 0 votes
AnswersA list of students and their marks in three subjects are given in the respective order.
- Tywin lannister December 13, 2016 in India
Student1 20 40 65
Student2 35 40 50
Student3 10 55 65
Given n = 2.
Find the name of the students who has got top marks in atleast n subjects.
Output for the above example
student1
student3
since they got top marks in atleast 2 subjects| Report Duplicate | Flag | PURGE
ThoughtWorks Applications Developer Algorithm - 1of 1 vote
AnswersWrite a Java program to get the count of ipv6 address present in the provided address range.
- sant November 16, 2016 in United States
Ex: if we provide ipv6 address range 2001:db8::/124 then the program should display the range contains 16 IP's.Starting from 2001:db8:: to 2001:db8:0000:0000:0000:0000:0000:000f.| Report Duplicate | Flag | PURGE
Goldman Sachs Applications Developer Network - 0of 0 votes
Answers - Rising star November 06, 2016 in United States| Report Duplicate | Flag | PURGE
Accenture Applications Developer - -2of 2 votes
AnswersProgram to increment the vavue of array element by 1 and cost require to each increment value us 1 print cost
- Rising star November 06, 2016 in United States| Report Duplicate | Flag | PURGE
Accenture Applications Developer - 1of 1 vote
AnswersThere is a 2D grid and there are two players P1 and P2. Their x,y positions are given. Then there are N gems on the grid and their positions are also given. The two players together are supposed to collect the gems in the given sequence making minimum moves (movement in all 8 directions is considered as 1 move). Note: the gems should be collected in the given order by either one of the players and then their position then becomes the position of the gem.
- Saroj Sharma September 22, 2016 in India| Report Duplicate | Flag | PURGE
Directi Applications Developer Algorithm - 0of 0 votes
AnswersJacob and Peter have their favorite number X and Y. We have given an array with positive interger number and we need to find the longest prefix index which contain equal number of X and Y. return -1 if there is no prefix with equal number of X and Y.
Suppose we have an array A = [7,42,5,6,42,8,7,5,3,6,7]
X = 7
Y =42
Output should be 9 as prefix will be index from 0 to 9 with equal number of X and Y.
I wrote below code but this has some bug which I could not find.
- sandeepmnit35 July 28, 2016 in Indiapublic int findIndex(int A[],int N,int X,int Y) { int nx =0; int ny=0; int result = -1; for( int i=0;i<N;i++) { if(A[i] == X) nx+=1; else if(A[i] == Y) ny+=1; if(nx== ny&& nx!=0&&ny!=0) result = i; } return result; }
| Report Duplicate | Flag | PURGE
Groupon Applications Developer Algorithm - 0of 0 votes
Answers1. If server is slow then tell me what are all the possible ways to trouble shoot to find why the server is slow.
- Srinivas July 14, 2016 in India| Report Duplicate | Flag | PURGE
Amazon Applications Developer - -3of 3 votes
AnswersWrite program that takes integer, deletes one of two consecutive digits and return greatest of all results.
- josearturodelosangeles June 01, 2016 in United States| Report Duplicate | Flag | PURGE
Google Applications Developer Coding - -1of 1 vote
AnswersOO design for implementing table tennis game between two players? I just want the class diagram not the whole implementation. Only the class/interfaces names will help.
- shridhar.mali657 May 15, 2016 in United States| Report Duplicate | Flag | PURGE
ThoughtWorks Applications Developer Java - 0of 0 votes
AnswersPlease post me full explanation(not only answer)
I want to know how it works.
- Rituraj bhardwaj May 04, 2016 in India for afai#include<stdio.h> void main() { int x=1, y=8, z; z= ++y + ++x + ++x; printf("z=%d", z); }
| Report Duplicate | Flag | PURGE
Student Applications Developer C - 1of 1 vote
AnswersNeed Java Program :
- sarath.chalasani46 March 31, 2016 in India
A rectangular plot comprising n*m block ( cement block in shape of a cube) were kept, one block per each cell. the base of
each block covers one cell completely and its surface is equals to one square meter. cube on adjacent cell are so close
that there are no gaps between them.due to a heavy rain on the constuction, water is accumulated in the gaps created
between a group of blocks due to the difference in their heights.
write a program to calculate the volume of water accumulated between the blocks on the constrution.
Input Specifications:
your function must read three arguments i.e plot_length,plot_breadth and block_height
where
- Plot_length (r) : provides the length of each rectangular plot in metres.
- Plot_breadth (c) : provides the breadth of each rectangular plot in metres.
- Block_height(int array) : provides the height of r*c blocks row-wise.
Constraints
1<=plot_length,plot_breadth,block_height<=10
Output Specifications:
output will be an integer that will depict the volume of water (in cubic metres) accumulated in the puddles due to the
difference in heights of block.
Examples:
Example 1:
input1 =3
input2=6
input3={3,3,4,4,4,2,3,1,3,2,1,4,7,3,1,6,4,1}
output: 5
Example 2:
input1 =6
input2=3
input3={3,3,7,3,1,3,4,3,1,4,2,6,4,1,4,2,4,1}
output: 5| Report Duplicate | Flag | PURGE
ADP Applications Developer - 0of 0 votes
AnswersNeed Java code:
- sarath.chalasani46 March 30, 2016 in India
In a Multinational company employees are ordered to seat according to their height in a line. they always choose their
positions randomly to displeasure their manager. one evening, the employee learn that their strict manager has secretly
recorded their seating positions from that morning, and that he will be checking their positions in the next moning to
make sure they are exactly the same.
Each employee only remember one thing from that morning: the number of people to his left that were teller then him.
there are N employees, each with a different height between 1 to n. using this information you must reconstruct the
seating arrangement from that morning.
you are given a int[], the ith element of which represents the number of taller employees to the left of the employee with
height i (where i is a 1-based index). Return a int[] containing the heights of the employees from left to right in the line.
Note: The input is guaranteed to produce a valid and unique output.
Inputs Specifications:
your function should accept the fallowing inputs:
Input 1: N
Input 2: An array(left[]) of n integers
Output Specifications:
you need to return the int [] containing the heights of the employees from left to right in the line.
Example :
Input:
input 1: 4
input 2: {2,1,1,0}
Output: {4,2,1,3}
Explanation:
Employee of height 1 remembered there were 2 employees taller than him to his left.
Employee of height 2 remembered there were 1 employees taller than him to his left.
Employee of height 3 remembered there were 1 employees taller than him to his left.
Employee of height 4 remembered there were no employees taller than him to his left.
the orginal order from left to right must have been 4,2,13.
this ordering satisfies all four conditions.
For example, there are exactly two employees to the left of the employees with height 1 that are taller then him(heights 4
and 2). A different ordering,like 4,3,1,2, satisfies some, but not all of the four conditions. in this incorrect ordering, there
are two employees to the left of employee with height 2 that are taller then him(height 4 and 3), but input states that
there was only one.| Report Duplicate | Flag | PURGE
ADP Applications Developer - 0of 0 votes
AnswersCan you please tell me the implementation of full adder ?
- superb.saif March 01, 2016 in United States| Report Duplicate | Flag | PURGE
segate Applications Developer - 0of 0 votes
AnswersGiven the X Y coordinates, width and length of 2 rectangles. Implement a function which returns "True" if the 2 rectangles intersect otherwise returns "False". The first 2 values represent the X Y coordinates, the following 2 represent the width and length.The last 4 values represent the second rectangle. The "8" values should be read from console and the result should be printed to console. Test input "1 1 1 1 -1 -1 3 3"
- bajan_coder February 27, 2016 in United States| Report Duplicate | Flag | PURGE
JP Morgan Applications Developer Problem Solving - 0of 0 votes
AnswersDefine and implement a function that takes two binary numbers represented as strings and returns their sum as another binary number which is again represented as a string. The result should not have any leading zeroes. In case the result is zero, it should be the string "0". Test input "111 1"
- bajan_coder February 27, 2016 in United States| Report Duplicate | Flag | PURGE
JP Morgan Applications Developer Bit Manipulation - 0of 0 votes
AnswerHow to find primes using SQL?
- Engineer1111 February 26, 2016 in United States
This is the SQL I came up to , but it looks like it'll only get numbers more than the square root
SELECT m1
FROM
(SELECT rownum m1 FROM dual d CONNECT BY LEVEL <1000
)
WHERE NOT EXISTS
(
SELECT x
FROM
(SELECT ROWNUM x FROM DUAL CONNECT BY LEVEL <= (sqrt(1000)))
WHERE x > 1
AND mod(m1,x) = 0
)| Report Duplicate | Flag | PURGE
ADP Applications Developer - 1of 1 vote
Answerthere is a file and 5 processes
- mohapatrasandeep60 February 04, 2016 in United States
how can you grant access so that
only 2 process can write to file and 1 can read file at a time
in linux| Report Duplicate | Flag | PURGE
Samsung Applications Developer - 2of 2 votes
AnswersGiven an array arr[] of size n. Three elements arr[i], arr[j] and arr[k] form an inversion of size 3 if a[i] > a[j] >a[k] and i < j < k. Find total number of inversions of size 3
- tihor December 29, 2015 in India
e.g.
Input: 23, 10, 24, 7, 12, 19
Ans: 23, 10, 7| Report Duplicate | Flag | PURGE
Deshaw Inc Applications Developer - 0of 0 votes
AnswersMultiThreading: How to process trades paralelly, and if there are any trades that are modified need to process then in a sequential way.
- LateRunner December 21, 2015 in United States
For E.g. if there are 10 trades, of which some trades are like created and then immediately modified before being processed, then need to process the trades parallelly, and for those trades that are created and modifed, need to process them sequentially.| Report Duplicate | Flag | PURGE
Applications Developer - 0of 2 votes
AnswersGiven an array, find the first element that appears an even number of times.
- techinterviewsintesys December 14, 2015 in United States| Report Duplicate | Flag | PURGE
Amazon Applications Developer - 1of 1 vote
AnswersGiven a circular linked list. Find the longest sequence of numbers, where a sequence starts with any number, for example 3, and ends when you see that number again,another 3.
- techinterviewsintesys December 14, 2015 in United States
Imagine the circular linked list
3 8 9 7 2 1 3 4 6 [3] same as first element .i.e three.
The longest sequence would be 3 8 9 7 2 1 , the other candidate being 3 4 6
Finding for instance,starting at 8 and getting to the same 8 wouldn't count as a valid sequence.| Report Duplicate | Flag | PURGE
Amazon Applications Developer - 1of 1 vote
AnswersGiven a 8 by 8 matrix, find all possible paths , moving one cell downwards or on cell to the right,(one cell per movement ) from cell 0,0 , to cell 7,7
- techinterviewsintesys December 14, 2015 in United States| Report Duplicate | Flag | PURGE
Amazon Applications Developer - 1of 1 vote
AnswersFind the first non-repeated element in an unsorted array.
- techinterviewsintesys December 14, 2015 in United States| Report Duplicate | Flag | PURGE
Amazon Applications Developer - 0of 0 votes
AnswersGiven a squared matrix, shift all elements 1 place to the right in circular fashion.
- techinterviewsintesys December 14, 2015 in United States| Report Duplicate | Flag | PURGE
Amazon Applications Developer - 2of 2 votes
AnswersHow to find middle element in a linked list without knowing the length of the linked list
- D PRAVEEN KUMAR December 10, 2015 in India| Report Duplicate | Flag | PURGE
unknown Applications Developer Data Structures - 1of 3 votes
AnswersYou have 12 marbles. They all weigh the same, except one. You don't know if that one is heavier or lighter. You have a balance scale.What would be the minimum number of weighing required to find the odd one.
- Divya Bolla August 07, 2015 in India| Report Duplicate | Flag | PURGE
abc Applications Developer Brain Teasers - 1of 1 vote
AnswersYou are given a bunch of nodes evenly spaced in a rectangular shape. The rectangle is M nodes long and N nodes wide. Node A is in the upper left hand corner and node B is at the bottom right hand corner. How many different paths are there from A to B?
- moonracer0120 June 21, 2015 in United States
What is a brute-force solution? What is better than a brute force solution?| Report Duplicate | Flag | PURGE
Applications Developer Algorithm - 0of 0 votes
Answers/*
- aj June 02, 2015 in United States
Tree:
1
/ \
3 5
/ \ \
2 4 7
/ \ \
9 6 8
==========
Expected Output:
1
35
247
968
*/
class TreePrinter {
static class Node {
int value;
Node left;
Node right;
public Node(int value, Node left, Node right) {
this.value = value;
this.left = left;
this.right = right;
}
}
public void printTree(Node root) {
// implementation here
}| Report Duplicate | Flag | PURGE
Linkedin Applications Developer Coding - 0of 0 votes
Answers/*Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they would compete for water and both would die. Given a flowerbed (represented as an array containing booleans), return if a given number of new flowers can be planted in it without violating the no-adjacent-flowers rule
- aj June 02, 2015 in United States
Sample inputs
Input: 1,0,0,0,0,0,1,0,0
3 => true
4 => false
Input: 1,0,0,1,0,0,1,0,0
1 => true
2 => false
input: 0
1 => true
2 => false */
public boolean canPlaceFlowers(List<Boolean> flowerbed, int numberToPlace) {
// Implementation here
}| Report Duplicate | Flag | PURGE
Linkedin Applications Developer Coding