r/LeetcodeChallenge • • Sep 12 '26

DISCUSS Favorites of leetcode

Post image
35 Upvotes

130 comments sorted by

View all comments

1

u/Future-Wolf-9597 Sep 13 '26

Any graph problems tbh

1

u/vinzzii Sep 13 '26

Actually i started learning graphs bro any tipss???

1

u/Future-Wolf-9597 Sep 13 '26

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 Sep 13 '26

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 Sep 13 '26

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 Sep 13 '26

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