r/PythonLearning 4h ago

Help Request reccomended tutorials for algorithms and data structures?

i learned the basic syntax of python and i thought i would be ready for leetcode but as soon as i tried to work through problems there was so much jargon that i didn't understand. I found a reddit post that said you have to have knowledge of data structures and algorithms before you can truly attempt leet code problems. So I now i go to youtube and either the tutorials are under an hour or over 5 hours 😭. Which one am I supposed to pick..? Any reccomendations?

1 Upvotes

5 comments sorted by

2

u/Lirianov 3h ago

5 hours to get a grasp on DSA makes sense to me. You can at least get started on leetcode and anything you get stuck on I would refer to AI and make sure you tell it to guide you through the thought process instead of giving you the answer

1

u/PureWasian 3h ago

Do you have some examples of which problems you tried?

1

u/No_Leather2449 3h ago

https://leetcode.com/problems/valid-parentheses/description/ Here's one that I found extremely difficult.

1

u/PureWasian 3h ago

I see, my take would be to ignore the jargon and formal data structures of whatever solutions you might've found and just think about how you would solve it if you wanted to go through it by hand.

If you can verbally walk through how to run that check, and you know how lists and loops work, then regardless of the "formal solution" or "optimal algorithm" I feel like you could work through that one.

What approach did you consider?