Answer should be 6.25. But its giving WA on submission.
Wrong answet on submitting code
Mention problem link
Mention Problem Name
Mention code link
I havent got this resolved. any solution?
Hi Abhineet, what do basic formula of probability says:
P = No. of Favorable outcomes / Total no. of outcomes
P = n1 / n2
as you can see that probability of 1 candidate getting selected is 0.16.
i.e. P = 0.16&
n1 = 1
now he unknown that is left is n2 i.e. total number of outcomes.
Now,
n2 = n1 / P
= 1 / 0.16
= 6.25
now since you cannot take interview of a 1/4th of any person therefore, you need 7 people.
and so the answer is 7.
just cout << 7 without any input or any other processing.
Hi Abhineet, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.