I have been learning javascript on and off over the last year. I enjoy doing algorithms on FCC and on Codewars and I even manage to solve them (most of the time). However, I tend to look at the solution after I figure it out and the most advanced solution is much shorter than mine and uses a completely different technique. I understand what is being done but then I get sad that I did not come up with such a solution on my own.

I tell my self that on the next problem I will try to solve it using advanced methods, but then when I attempt the problem I feel like my brain will explode, so I solve it using the “long way” and the loop just starts over.

Should I just try to get comfortable with solving algorithms and stop looking at the short solution, and then 6 - 12 months down the road start to make my solutions more elaborate or should I keep looking at the short answers and attempting to use those methods in my work?