Amazon Interview Report
- 0of 0 votes
AnswersWrite a class For Contacts on a device
- JSDUDE May 04, 2013 in United States
Implementing Search a contact was the biggest problem I faced (because search should potentially search: FirstName, LastName, Address, PH#, Email etc)| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswersImplement an iterator for a Binary tree. It should have the following things:
- JSDUDE May 04, 2013 in United States
1. bool HasNext()
2. <T> Next()
It should be an in-order traversal.| Report Duplicate | Flag | PURGE
Amazon SDE1 Trees and Graphs - 0of 0 votes
AnswerWrite a class for a parking garage:
- JSDUDE May 04, 2013 in United States
One level
One entry point
No membership or payments required
Handles multiple types of cars| Report Duplicate | Flag | PURGE
Amazon SDE1 Object Oriented Design - 0of 0 votes
AnswerThere is a HealthMonitor and two Servers (Primary and Secondary), all connected to one and another.
- JSDUDE May 04, 2013 in United States
The HealthMonitor keeps pinging both the servers at specific time intervals and waits for their response for a time-out period after the request has been sent.
The server responds with a health status of itself and of its neighbor (meaning Primary responsds: OK; NEIGHBOR_OK)
Implement the server's code to send and receive responses and then take action based on response.| Report Duplicate | Flag | PURGE
Amazon SDE1 Threads - 0of 0 votes
AnswersImplement:
1. a search that will return all the strings that match a sub-string
2. an insert into this datastructure
- JSDUDE May 04, 2013 in United StatesClass { Insert (string str){}; List<strings> Predictions(string subString){}; }
| Report Duplicate | Flag | PURGE
Amazon SDE1 Trees and Graphs - 3of 3 votes
AnswersWrite a class that will have following functions:
- JSDUDE May 04, 2013 in United States
long CheckOut()
CheckIn(long)
Range of values is 1 to LONG_MAX
At any given point in time checkout should return the minimum available LONG number
Checkin can return the value back
No need to check for border conditions (e.g. check out when all values are exhausted)
Implement:
1. long checkout()
2. void checkIn(long input)| Report Duplicate | Flag | PURGE
Amazon SDE1 Data Structures