Should i spend time on looking at better solutions

Hello i am currently on Basic Algorithm Scripting. Generally after i solve a question with for loops i would go to hints and spend time looking at the more advance solutions, there is usually one using js built in function or one using recursive function which i kind of understand but i am not able to write one from scratch. Is this worth spending time on?

@PeterWebDev, for me it is. I think it depends on your learning style. I tend to retain information better the more I interact with it. So, for me, the more solutions I see, the more times I think about the algorithm, and the more ways I learn to solve it all help me remember and learn.

Just a FYI,. just because it looks like a fancy solution doesn’t necessarily mean it’s the better solution. The best code is code that is:

readable
uses the best time complexity
uses the best space complexity