Number of Good Paths - Union Find - Graph - Python

Опубликовано: 01 Май 2026
на канале: CheatCode Ninja
857
20

Number of Good Paths
Leetcode 2421
Topics Covered: Graph, Union-Find, Path Compression
Leetcode Hard
Python

Buy Me a Coffee: https://www.buymeacoffee.com/cheatcod...

CHAPTERS
00:00 Problem Description
00:32 Example
01:45 Intuition
07:26 Time & Space Complexity
07:49 Coding Solution

Problem Link: https://leetcode.com/problems/number-...

Patreon:   / cheatcodeninja  
Discord:   / discord  

Equipment I use to make these videos:
Mic: https://amzn.to/3kb97AK
Writing Pad: https://amzn.to/3IIYlfi

Placement Playlist:    • Placement Preparation - Data Structures an...  
HashMap Playlist:    • HashMap  
Graph Playlist:    • Graph  
Heap Playlist:    • Heap  
Stack Playlist:    • Stack  
Binary Tree Playlist:    • Binary Tree  
Dynamic Programming Playlist:    • Dynamic Programming  
LinkedList Playlist:    • Linked List  
Greedy Playlist:    • Greedy  

#leetcode
#faang
#programming
#binarysearch
#heap
#bfs
#stack
#hashmap
#dfs
#binarysearchtree
#prims
#codinginterviews
#codinginterviewquestions
#codinginterview
#codeforces
#placement