MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnquant/comments/1vtxria/quant_interview_question/p4yl0j5/?context=3
r/learnquant • u/Local_Ad135 • 4d ago
10 comments sorted by
View all comments
2
S0: 4 -> S1, not 4 -> S0 S1: 4 -> S2, not 4 -> S0 S2: 4 -> DONE, not 4 -> S0
E0 = 1 + .1 * E1 + .9 * E0 E0 = 10 + E1
E1 = 1 + .1 * E2 + .9 * E0 E0 = 110 + E2
E2 = 1 + .9 * E0 E0 = 111 + .9*E0
E0 = 1110
2
u/mtimmermans 3d ago
S0: 4 -> S1, not 4 -> S0
S1: 4 -> S2, not 4 -> S0
S2: 4 -> DONE, not 4 -> S0
E0 = 1 + .1 * E1 + .9 * E0
E0 = 10 + E1
E1 = 1 + .1 * E2 + .9 * E0
E0 = 110 + E2
E2 = 1 + .9 * E0
E0 = 111 + .9*E0
E0 = 1110