Skip to content
Avio Lines
← Graphs lineD17Stop 61 of 145

Longest Path With Different Adjacent Characters (LeetCode 2246)

HardLeetCode 2246 · DFS · Amazon, Microsoft +3 · 23:44Longest Path With Different Adjacent Characters : (Microsoft) · 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 2246 Longest Path With Different Adjacent Characters by codestorywithMIK: Graphs, Hard. Topics: Array, String, Tree, Depth-First Search. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
hard
Topics
Array, String, Tree, Depth-First Search, Graph Theory, Topological Sort
Patterns
DFS, Topological Sort
Chapter
Graphs
Duration
23:44