Aptitude Question
If there is a frog which can go one step forward with probability 3/4. and one step backward with 1/4. What is expectancy to reach 7 steps forward.
Ala Seif
1y
i_rand = 1000
p = 3/4
path = list()
for i in range(i_rand):
x = [0]
current_pos = 0
for i in range(100):
if current_pos > 0:
coin = s = np.random.binomial(1, p, 1)
if coin ==1:
current_pos += 1
else:
cur...read more
Help your peers!
Add answer anonymously...
Top JPMorgan Chase & Co. Machine Learning Engineer interview questions & answers
Popular interview questions of Machine Learning Engineer
>
JPMorgan Chase & Co. Machine Learning Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app