LeetCode
Question
·
Jun 2021
Facebook | Onsite | Longest Path in weighted DAG
5 upvotes
1,633 views
7 replies
Question Details
Given a weighted Directed Acyclic Graph, find the longest path between two given node. I came up with a simple BFS solution, but then Googled the question after the interview and...
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Graph
Queue
Strings
More from Meta
Reddit
Leetcode is cooked in 2026 and we don't hire people who only grind leetcode.
Reddit
Returning to SWE work after 3 years of cancer treatment
Reddit
2026 New Grad Recap
Reddit
Most likely failed meta phone screen
Reddit
Targeting OpenAI SWE Roles? Insights on what to expect from recent system design loops