Skip to main content
medium

Web Crawler

Web Crawler - Explore a website by following links! You're given a start URL and a dict of URL -> [linked URLs]. Return all pages reachable from the start URL. Example: start_url = "http://a.com" links = {"http://a.com": ["http://a.com/about"]} Result: ["http://a.com", "http://a.com/about"]

Web Crawler is a traversal problem: the hard part is modeling the state you visit. Interviewers love it because it reveals your traversal modeling and your edge-case discipline. Once your traversal structure is solid, you can reuse it across dozens of problems.

Meet Coco

Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Sign in free to type with Coco, up to a daily limit, and to talk with her for one hour. After that, talking comes with the $79 pack. Anyone can open the editor and run their code.

1Follow All Linksmedium
2Part 2
3Part 3
4Part 4

Each locked part opens in the editor once the part before it passes.

Based onLeetCode

Get a note when something new lands

New company guides, new problems and big changes to Coco. Rare, and you can leave any time. By joining you agree to get these emails.