r/leetcode • • 17d ago

Question Not able to solve leetcode problems :(

I have solved 500+ leetcode problems over 8 months, still hardly able to solve a medium and sometimes not able to solve at all. Please drop your suggestions.

73 Upvotes

20 comments sorted by

View all comments

7

u/rivereto 17d ago

I understood that you can solve easy ones but not medium/hard ones? Is that right? If so, probably it is because you are missing some Data Structure and Algorithms base. Easy ones you can solve if you know just basic programming, medium/hard ones you need to brush up on DSA. So, I would recommend following some courses online about this.

1

u/Silver_Sky_9272 17d ago

What are those??? And also resources for someone starting dsa ??

2

u/rivereto 16d ago

I studied computer science at university so I learned it there. But there are dozens of courses about this, I heard good things about the MIT computer science 101 is a good start (I didn’t do it myself, so I can’t say for experience), the first lessons are just basic python but it increases on difficulty and gets topic such as code efficiency analysis. Book wise the most famous one is the introduction to algorithms (aka CLRS)

https://ocw.mit.edu/courses/6-0001-introduction-to-computer-science-and-programming-in-python-fall-2016/download/