How to find the longest path on a weighted DAG? — 1. Set all edges to their negative weight. 2. Topological sort 3. follow the topological sort, relaxing edges
G
1.2K
Google Interview
This flashcard deck made by jwasham contains knowledge about google interview. For more details, please follow https://github.com/jwasham/google-interview-university