Grasshopper Problem
Given a directed graph, a start node and an end node, determine if there exists a path from the start node to the end node. The input is the number of nodes n, the number of edges m, and the start and...
Example
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:
