Back to problems

Wiki Page Shortest-Click Path

Algorithm · Snowflake · Hard

Requirements You are given a helper API, get_linked_pages(uri: str) -> List[str], which lists all pages directly linked from the page identified by uri. Create min_clicks_to_target(start_uri, target_uri, get_linked_pages) to determine the fewest clicks needed to travel from start_uri to target_uri. It is enough to return the distance; returning the actual route is optional. In some interview variants, you may also be asked to build a small mock get_linked_pages using an…

Checking your access…