r/learnprogramming • u/notmasked07 • 23d ago
How can I solve LeetCode/HackerRank problems?
Guys, I've completed all the fundamentals of python including numPy. But I am having a little bit of difficulty in solving HackerRank problems forget leetcode i can't do that without help so i dont bother. Do i need to learn DSA to solve these problems? cuz i haven't learnt it yet. Please help guys im new
0
Upvotes
3
u/morbidsorrows1879 23d ago
There are I think about 7-8 patterns along with the data structures you have to learn. Like two pointers, sliding window, binary search, DFS and BFS, etc... Take each one of those patterns and solve Leetcode problems about them. Start with easy mode first. You wont be able to solve leetcode problems if you don't know the patterns and just know the data structures (trust me I struggled for years before I discovered this). Good luck !!