Amazon Interview Question


Country: United States




Comment hidden because of low score. Click to expand.
0
of 0 vote

2. a) Bought 600 roses: cost = $0.3*600 = $180. Revenue = 600*(0.2 (a customer wanted exactly 600 roses) +0.3 (customers wanted 900 but i had only 600 )+05(customers wanted 1200 but again i had only 600)) = $600, profit = 600-180 = $420
b) Bought 900 roses: cost = $270. Revenue = 600*0.2 (if only 600 roses sold) + 900*(0.3+0.5) (if someone wanted those 900 roses or a customer wanted 900 but i had only 900) = 120+720=$840, profit = $570
c) Bought 1200 roses: cost = $360. Revenue = 600*0.2 + 900*0.3 + 1200*0.5 = 120+270+600=990, profit = $630

- lareinev May 10, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Thanks for responding. But you have multiplied 900 by 30% probability and 1200 by 50% probability whereas the question has it vice versa. Am I right here? Also for part a) The answer is 217 I suppose.

- venkateshumamaheswaran May 10, 2018 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More