Amazon Interview Report
- 0of 0 votes
AnswersYou are given a paragraph , which contain n number of words, you are given m threads. What you need to do is , each thread should print one word and give the control to next thread ... this way each thread will keep on printing one word , in case last thread come, it iwill invoke the first thread ... procedure will repeat until all the words are printed in paragraph. Finally all the thread should exit gracefully. What kind of synchronization will use ? Answer only the logic to implement (not complete code)
- Interviews January 29, 2012 in India| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Threads - 0of 0 votes
Answersyou have 100 elements from 1 to 100 but my mistake one of those number overlapped another by repeating itself.
- Interviews January 29, 2012 in India
Ex. in 1----98,99,100 .... 99 overwrite 2 , so the array becomes ... 1,99,3,4,----99,100 .. Array is not in sorted format , how to find the repeating number ?| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Arrays