Amazon Interview Question for SDE1s


Country: India
Interview Type: Written Test




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

pA = 6 / 7;
pB = 4 / 5;
pC = missing in the statement.

We can pick (A,B), (A,C), (B,C), so answer = (pA*pB + pA*pC + pB * pC) / 3

- Miguel Oliveira July 29, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

instead of multiplying the whole term by 1/3 you should multiply it with 2/3 because everytime you are selecting 2 out of 3 persons.

- vgeek July 29, 2013 | Flag
Comment hidden because of low score. Click to expand.
2
of 2 votes

There are C(3,2) = 3 ways to pick 2 out of 3 people, disregarding order. Then, there's a 1/3 chance of picking one of those 3 cases.

- Miguel Oliveira July 29, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

P(a intersection b)=p(a)+p(b)-p(a union b)
Am i correct regarding this case?

- Sibendu Dey July 29, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

C shot details??

- algos July 29, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Right :) C's details?

- Murali Mohan July 29, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

C details : assume that C hits 4 times out of 9

- siddharthjain July 29, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

if we consider a c probability 3 out of 4 times then
PA =6/7
PB = 4/5
PC = 3/4
total probability is PA * PB * PC(not hitting) + PA*PB(not hitting)*PC + PA(not hitting) * PB*PC
sp probability is = 6/7 * 4/5 * 1/4 + 6/7*1/5*3/4 + 1/7*4/5*3/4 =27/70

- Anonymous July 29, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Can you elaborate?
!A, !B or !C is the probability, that they do not hit the target, not that they do not shoot, while the probability that AC, BC or BC is going to happen is 1/3 each.

- gonzo July 30, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

there are three ways to choose three ppl out of three: AB, AC, and BC.
P(hitting target twice) = P(first chosen person hit) P(second chosen person hit) = P(A hit)P(B hit) + P(A hit)P(C hit) + P(B hit)P(C hit)

- DLin October 09, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Is your statement is complete?
this seems a incomplete problem and to solve it, more information is needed.
For instance, how many times can the two persons try? 2, or more than 2?

- shuaixin.david November 02, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

if we assume that C hits 3 out of 4 times then :-
ans = 1/3( 6/7*4/5 + 4/5*3/4 + 3/4*6/7)

- Shubh June 20, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

why do we need to divide by 3??

- Sorrowfull blinger August 24, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Marhaba,

Great piece on Amazon Interview Question for SDE1s, I’m a fan of the ‘flowery’ style Looking forward to more long form articles ??


I have AWS ec2 six instance for 3 year subscription and type is c4.xlarge for purpose of web-server. due to high usage of RAM/CPU/IO, we wanted extend capacity means resizes resources for existing c4.xlarge to c42xlarge type. may I know the how much extra cost we need to pay for each instance. if we want resize ec2 instances.

Super likes !!! for this amazing post. I thinks everyone should bookmark this.

Thanks and Regards
Radhey

- Radhey June 11, 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