I consistently solve leetcode easy n medium during contest but only 1-2 times I was able to solve leetcode hard. Any tips are greatly appreciated?
Eat sleep code repeat
The ones I was able to solve normally via recursion and memoization. Probably just keep practicing
I have a follow up question. I’ve been doing some questions without looking at the answers. And pausing and thinking and coming back. And I get about 70-80% of it myself (albeit slow the first time). Then I am stuck, check the answer and am like oh yeah. Is this normal the first time you see the problem? How do I get faster? If I redo the question I usually remember the tricks so then can do it faster.
LC hard questions are trash. They provide awful signal
Do hard only