回複:回複:Quant麵試題:喝醉了(2.5星)

來源: 2009-08-07 01:55:38 [舊帖] [給我悄悄話] 本文已被閱讀:

The result is correct but I feel that "E(50) = E(49)+1" is not.

Correct equations should be:

E(0)=E(100)=0,
E(n)=0.5*(E(n-1)+E(n+1))+1, n=1,2,...,99

To solve, one can put all above into matrix form and get E(1),E(2),...,E(99) at one go.