My solution seemingly produces correct results, but it is not accepted because of "time out". If I look at the reference solution my only question is: how on earth am I supposed to EVER or in FINITE TIME get to such a solution? I am not a graduated student of Information Sciences, I'm just a beginner and I cannot imagine how to google myself into the right direction - or even come close to the reference solution. As I'm advancing this kind of unsolvable tasks happen more and more often, and my only chance is to look up the reference solution. Of which I learn... not very much, sorry. I could as well look up the solution right away if I encounter a "hard" task. How much will I learn? Or is *this* the way of CodeGym to tell me I should quit trying/struggling to become a programmer? Frustration is one thing, constant failure is another.