Amazon Interview Question
SDE1sCountry: India
Interview Type: Written Test
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.
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
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)
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
pA = 6 / 7;
- Miguel Oliveira July 29, 2013pB = 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