I was wondering how people approach new leetcode problems. Suppose I’ve given myself 1-2 months of time to just hammer out as many problems as possible. Do you try solving it for like an hour and possibly come up with a suboptimal solution, then go to the comments? Do you sketch out a rough idea in your head, then go to the solutions, then possibly replicate it yourself? Do you use the test case to perform compiler checks or do you always try to be syntactically perfect? Timed or not timed? Etc.
Is premium versus free account plays role here
Assume free and you aren’t targeting 1 specific company
If premium helps, I’ll get premium. It’s cheap compared to the time you put in and the reward anyhow.
There’s a site called leetfree...
How is it different?
It basically is leetcode with premium. All for free.
Give 5min thinking the go to the answers to see if it is a good thinking, then write code without looking at answer