a continuous versio of Quant麵試題:喝醉了(2.5星)
assume the drunk guy follows brownian motion, then to find E[\tau], we just need to solve a differential equation, since it is just one-dimension, the equation is just ODE:
-1/2 u_xx=0
u(0)=u(100)=0
E[\tau]=E[1]=99