Web Crawler Shortest Click Path with Space-Optimal Reconstruction

Given startUrl, targetUrl, and get_all_links(url), return one shortest click path from the start to the target, including both endpoints. Return an empty list if the target is unreachable.

Link...

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: