Whats a good solution on leetcode?

I have just started using the platform. Trying to put my quarantime to use. I solved some of the easy questions and have a doubt on how much i should try optimizing the solutions. My solutions seem to be good time wise but bad space wise. Is this OK? or should I focus on optimizing both?

Also whats the best way to use leetcode? I have started with the easy questions on the top100 interview questions list. Is this the way to go?

Comments (1)