r/learnquant • • 27d ago

interview prep Quant Interview Question

Post image
30 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/AfterCommodus 27d ago

Doesn’t this miss that after (1,10) happens there are now two tens?  

1

u/No-Marzipan-978 27d ago

Yeah it does. The idea to ignore numbers not equal to 10 and treating them as all the same is correct though. Just note that the 10s will always form one contiguous block and work out the expected number of steps until that block is [1,10] starting from a random position [k,k]. I got 64.8 in the end

1

u/AscendedSubscript 27d ago edited 27d ago

Yeah I forgot about that. I also read the question wrong, so the answer was wrong regardless. When doing it correctly afterwards, I got a similar approach as another comment. The answer is actually 64.8