Question

Question 7

The following is a solution to the random walk exercise in Assignment 4 by a student. It is correct

but very slow for large values of n.

Question image 1Question image 2