3
drewbie
4y

What should I do if I can't get a Leetcode answer?

Should I just keep hammering along and stress myself out until I get the answer, or look at the answer and try to learn from that?

I'm trying to find a new job and am pretty shit at algorithms.

Comments
  • 1
    Look at the answer and find out why it works. Then implement it again. Read up on the algos and data structures being used, apply them in the future. eventually you'll answer most of them no sweat.
  • 0
    @SortOfTested it's just discouraging to not be able to get to the answer on my own. Interviewing in a whole other skillet.
  • 1
    Hey, if this makes you feel better, i can usually solve leetcode problems with half the time and space they use because their solutions are dogshit
  • 1
    @drewbie another viewpoint: you are tackling problems beyond your ability. Because if you only do problems you can solve Everytime, did you really learn anything? look at the solution, understand it, reimplement, optimize, and now you can solve it. Self improvement ftw. Just cause you can't solve it right now is exactly why it's the right one to be working on.
  • 1
    @deadPix3l thank you I didn't think of it that way.
Add Comment