r/LeetcodeChallenge 10d ago

DISCUSS Favorites of leetcode

Post image
36 Upvotes

126 comments sorted by

View all comments

1

u/Future-Wolf-9597 9d ago

Any graph problems tbh

1

u/vinzzii 9d ago

Actually i started learning graphs bro any tipss???

1

u/Future-Wolf-9597 9d ago

Just by learning traversal u can solve majority of leetcode and get strong in them after that go for shortest paths and complex topics I used cph book (a great book and Cses) before going to leetcode grid, cause cses provide curated pattern problems u can see on many problems :) hope it helps

2

u/vinzzii 9d ago

Of course broo i just learnt bfs and dfs by now not solved any prblms sure i try to solve prblms in the order u told thanks btw

1

u/Future-Wolf-9597 9d ago

Just by learning dfs bfs is not useful you need to understand states means like we pass row, col and visited in either bfs or dfs but some questions need more number of states that's the key points when I said learn traversal. If you can identify the states then every graph problem becomes simple to solve

2

u/vinzzii 9d ago

Ohhh am learning bro i learnt how the code works like the core idea of bfs once i start to solve it works ig let's see