Skip to content
Avio Lines
← Graphs lineD17Stop 60 of 145

Number of Nodes in the Sub-Tree With the Same Label (LeetCode 1519)

MediumLeetCode 1519 · BFS · Uber, Samsung · 27:38Number of Nodes in the Sub-Tree With the Same Label : (Better Approach) · Explanation ➕ Live Coding
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 1519 Number of Nodes in the Sub-Tree With the Same Label by codestorywithMIK: Graphs, Medium. Topics: Hash Table, Tree, Depth-First Search, Breadth-First Search. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
medium
Topics
Hash Table, Tree, Depth-First Search, Breadth-First Search, Counting, DP on Trees
Patterns
BFS, DFS
Asked at
UberSamsung
Chapter
Graphs
Duration
27:38