Ebay Interview Questions
- 0of 0 votes
AnswersArrayList A, B, C are sorted int arraylists.
- hboy December 29, 2012 in United States
When A[i] + B[j] = C[k], you need to remove C[k] from ArrayList C.
Please implement code with O(N^2). Note that you are not allowed to use additional data structures such as arrays, hash tables, etc.| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Arrays - 1of 1 vote
AnswersGiven a Binary Search Tree, find the k-th largest value of the the tree.
- bulelaugh December 16, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Algorithm - 0of 0 votes
Answersgiven two ascending sorted arrays, how to combine the two arrays into one sorted array.
- bulelaugh December 07, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Amazon Software Engineer / Developer Algorithm - 0of 0 votes
Answersyou have an array of strings . print all anagrams for a string with complexity n2 .
- chad August 08, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Algorithm - 0of 0 votes
AnswersSuppose you have huge list of single digit integers how will you sort them ? list fits in memory . how can u do it with n complexity ?
- chad August 08, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Algorithm - 0of 0 votes
AnswersExtend the JavaScript Array object by adding a method that removes duplicates.
- niharika.verma June 21, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Front-end Software Engineer Coding - 0of 0 votes
AnswersImmutable Object in Java?
- andy March 06, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Java - 0of 0 votes
AnswersDifference between Linked List and Array List
- andy March 06, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Java - 0of 0 votes
AnswersGiven a tree, write algo to verify whether it is a BST or not?
- andy March 06, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Algorithm - 0of 0 votes
AnswersPuzzle:
- CorporatePurse1 January 07, 2012 in United States
given a 10x10x10 sized room and a 15 feet large stack of penny. Can you fit all the pennis in this room. Diameter of a Penny is half inch.| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer - 0of 0 votes
AnswersFind the top 100 largest numbers from a very large file containing numbers. The file cannot be loaded into the memory.
- CorporatePurse1 January 07, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer - 0of 0 votes
Answerswrite algorithm to add two Roman Numeral.
- CorporatePurse1 January 07, 2012 in United States
Can you do it without converting Roman Numeral to integer numbers.| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer - 0of 0 votes
Answersprint the 5th node from the end of a link list.
- CorporatePurse1 January 07, 2012 in United States| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer - 0of 0 votes
AnswersSort Array of String based on char array sort order.
- CorporatePurse1 January 07, 2012 in United States
example:
char[] c = {'T', 'M', 'A'}
String[] strArray = {"Adam","Martha","Terry"}
Output : "Terry", "Martha", "Adam"| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Algorithm - 0of 0 votes
AnswersAlgorithm to find the square root of a given number in C without using sqrt
- cinderella October 21, 2011 in United States for cloud| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer - 0of 0 votes
Answersdouble payment = 0.1;
- nr October 05, 2011 in -
double sum = 0.0;
for (int i=0; i<10; i++)
{
sum += payment;
}
why is output 0.9999999999999999
public class TestFloatingPoint {
public static void main(String[] args) {
double payment = 0.125;
double sum = 0.0;
for (int i=0; i<8; i++) {
sum += payment;
}
System.out.println(sum);
}
}
Why does this give 1.0| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer - 0of 0 votes
AnswerseBay coding interview question really sucks and unreasonable. After I finished it, I realized that it was in the Internet. Which means if you google the question well, you can finish in 10 min. This cannot tell your coding skill at all. It tests your googling skill.
- anony July 29, 2011| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer - 0of 0 votes
AnswersDescribe Fly-Weight pattern
- ds999 June 09, 2011| Report Duplicate | Flag | PURGE
Ebay Front-end Software Engineer - 0of 0 votes
AnswersWhen do you use Abstract and when do u use Interface
- ds999 June 09, 2011| Report Duplicate | Flag | PURGE
Ebay Front-end Software Engineer - 0of 0 votes
AnswersTypes of exceptions in JAVA
- ds999 June 09, 2011| Report Duplicate | Flag | PURGE
Ebay Front-end Software Engineer Java - 0of 0 votes
AnswersHow we can achieve internalization on UI level say JavaScript?
- JavaJavas February 17, 2011| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Java - 0of 0 votes
AnswersWhy do we need hashcode() method, when we have equals()?
- JavaJavas February 17, 2011| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Java - 0of 0 votes
AnswersEbay has its own system that it uses to levy taxes on the sellers. The taxes are computed in a progressive manner. For eg. if the seller sells goods worth $25 then for the first 10 dollars tax=8% and on remaining 15 dollars tax = 7%. So total tax= 8% of 25 + 7% of 15.
- Kunal January 21, 2011
The table that they use to compute the tax is as follows
$0 - $10 8%
$11 - $50 7%
$51 - $500 6%
$501 - $10000 5%
$10001 -$1000000 4% and so on.
Which data structure would you use to store this table and how would you use that data structure to code a function
float computeTaxableAmount(float amount) {}| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWhat happens after entering URL address at the browser(details of how we get to see the web page)?
- surath August 23, 2010| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Networking / Web / Internet - 0of 0 votes
Answersyou have a base class in which you have private data.There is another class which is derived from base class.How will you access the private data of base class from main() by creating object of derived class.
- surath August 23, 2010| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer C++ - 0of 0 votes
AnswersDifferent ways to do debugging.
- surath August 23, 2010| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Debugging - 0of 0 votes
AnswerWhat are joins.what is natural join.
- surath August 23, 2010| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Database - 0of 0 votes
Answersyou have table employee with salary as one column.there are n rows with maximum salary and x rows with minimum salary.(we dont know n and x). display the difference between total sum of minimum salary and total sum of maximum salary.
- surath August 23, 2010| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Database