Check whether one URL can reach another given pairs of reachable URLs.
Unlock detailed company stats for this questionUpgrade
Given pairs of URLs where from the first URL you can reach the second, construct the directed graph first. Then pass this graph as input to a function that checks whether url2 can be reached from url1. Can be solved using BFS/DFS.
Format · Onsite coding round.
Community answers
No answers contributed by the community yet.
Related questions
Check whether a destination is reachable given flights between cities.Given an array, find whether we can reach the last index or not.Related courses

Course

Course
Course
