NeetCode #607LC-1236MediumGraphsNC Algo100
← Back to All Problems

#607 · #1236 · Web Crawler(网络爬虫)

📌 Problem Statement & Constraints

This is an interactive problem. Given a startUrl and an HtmlParser with getUrls(url) returning the links on a page, return all URLs reachable from startUrl that share its hostname. Constraints: at most 10^4 URLs; total content at most 10^6 characters.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!