Amazon Interview Report
- 0of 0 votes
AnswersThere is an server which has infinite number of services s1, s2, s3,....Also there is a priority attached to it. There is one to one mapping between the services and priorities. The following mapping is stored by the server.
- rawat011 May 31, 2013 in India
p1 --> S1
p2 --> s2
p3 --> s3
p4 --> s4
p5 --> s5
p6 --> s6
.
.
.
infinite
Whenever a user logs in to the system, it assigns a service with lowest priority available to it.
Whenever a user logs out of the system, service is returned to the pool of free services.
a. What is the datastructure that you will use to store these services. You dont have to store the mapping. Mapping is already stored in the system.
b. Can you write the code for it.
c. How will you go about writing automation framework to test it
Please let me know if anyone need any more info about the question| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Algorithm - 0of 0 votes
AnswersA stirng is represented using a linked list how will you find if it the string is palindrom.
- rawat011 May 31, 2013 in India| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test SDE1 Algorithm