Software Engineer | Online assessment | Take home
Anonymous User
439

In the English language wikipedia, repeatedly clicking on the first link in the main body of an article will eventually lead to the Philosophy page in a large fraction of cases. This phenomena is documented here: https://en.wikipedia.org/wiki/Wikipedia:Getting_to_Philosophy

Following the guidelines in the “Getting to Philosophy” page write code, in the language of your choosing, that allows you to reproduce this behavior. For a random selection of 100 starting pages:

What fraction of them eventually reach the philosophy page?
What is the longest path that eventually reaches philosophy?
Are there other common sinks, like the Philosophy page?

Comments (1)