Skip to content
Avio Lines
← Graphs lineD17Stop 101 of 145

All Ancestors of a Node in a Directed Acyclic Graph (LeetCode 2192)

MediumLeetCode 2192 · BFS · Google, Amazon +2 · 42:56All Ancestors of a Node in a Directed Acyclic Graph · 3 Approaches · Leetcode 2192
MIK's code LeetCode ↗ YouTube ↗

My notes

Sign in to keep private notes on every station, with video timestamps.

Try it before watching

Pause here and write your approach in two lines. Compare it with MIK's when the video ends.

Sign in to write your approach →

About this video

Video solution for LeetCode 2192 All Ancestors of a Node in a Directed Acyclic Graph by codestorywithMIK: Graphs, Medium. Topics: Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
medium
Topics
Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort, Directed Acyclic Graph
Patterns
BFS, DFS, Topological Sort
Chapter
Graphs
Duration
42:56