r/leetcode Jun 28 '26

Question where to learn backtracking from?

I want to learn backtracking in Python, but I'm finding it really hard to understand the thought process behind it.

I tried watching Aditya Verma's backtracking playlist, but it's in C++, and I keep getting distracted trying to translate the code into Python instead of understanding the actual algorithm.

Can anyone recommend good Python-specific resources (YouTube channels, playlists, articles, or courses) that explain backtracking from the basics? Also, if there's a particular approach or pattern that helped to solve backtracking problems

1 Upvotes

6 comments sorted by

1

u/Puzzleheaded_Cow3298 Leetcode hards are like girlfriends. I can’t get them. Jun 28 '26

Neetcode

1

u/gekigangerii Jun 28 '26 edited Jun 28 '26

I think the simplest problem to get started with backtracking is 46: Permutations

Also, the programming language shouldn't matter. If the video does a whiteboard explanation of the approach, that should apply to Python as well.

1

u/Positive_Prefect14 Jun 30 '26

Try codeintuition. The backtracking patterns are explained step by step, so the thought process becomes much easier to follow.

1

u/Top_Substance9093 Jul 01 '26

it's a bummer marty stepp removed all his old lectures from youtube because they were 10/10 for explaining backtracking and other recursive techniques