Longest Path in a DAG
Medium
Topological Sort & DAG
Given a directed acyclic graph, print the number of edges on the longest path in it.
Constraints
1 <= n <= 10^5 0 <= m <= 2 * 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.