0

SWEs: Best way to learn leetcode?

Comments:
Threaded Linear
#1
Dcoo99

been grinding leetcode lately in prep for interviews, but sometimes i go back to a question and realize i have no idea where to even start with the question even though i just completed it a day or 2 ago. how do i consistently learn leet code and get to the point of seeing the patterns and realizing what to do to solve a question? what do you guys do?

#2
noahkraken
0
Frags
+

It’s just pure repetition. Do as many as possible and make sure you clearly understand the solutions for the questions you can’t solve

#3
amigo_colega
0
Frags
+

Really try a question the best you can. Note down how you thought about a problem. If possible, note down the suboptimal solution that you thought of. If you weren't able to think of the answer, check the solution. Then your mind will connect your suboptimal solution and it would know how to get to the optimal solution for one kind of pattern.

Slowly but steadily, you'll figure out at least one way of solving the problem. After solving the problem correctly, check others solutions and see if they have done anything differently. This will show you multiple ways of solving the problem, and you get different perspectives of solving the same problem.

Hope this helps <3

  • Preview
  • Edit
› check that that your post follows the forum rules and guidelines or get formatting help
Sign up or log in to post a comment