Ebay Interview Report
- 1of 1 vote
AnswersGiven two array of integers write two functions that will return an Union and Intersection
- JSDUDE June 13, 2013 in United States
Time efficient
Both time and space efficient implemented| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Arrays - 0of 0 votes
AnswersN nodes, each node consists of a couple fields and methods. These are:
- JSDUDE June 13, 2013 in United States
int id; //every node has an ID. All of these IDs are sequential, and begin with 0. I.e. all ids are uniquely in the range of 0 t N-1
int val; //every node has a value
int max; //max = N. Every node knows how many nodes are in the system.
void send(int idTo, int payload)
int recv(int idFrom)
Write a single piece of code which runs on every node simultaneously, such that when it is finished running every node in the system knows the sum of the values of all the nodes in the system.| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Trees and Graphs
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.