Most efficient way to prep with Leetcode problems?
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.