I see so many developers getting totally devastated when things go wrong when they fail the coding interview, or they don't get the job. And I think that happens because they approach this with a short term mindset. They want the quick fix, the pay raise, the better job. Because they are so focused on the outcome, when things don't go their way, they are devastated by failure. Look, I get it. We live in a world full of instant gratification.
You want things now, and I want them too. But this mindset, it's killing your growth. A better way to go about this is to understand that the details don't matter, process is the goal. Becoming the best developer you can possibly be, it's the goal. Who cares about a code challenge that didn't turn the way you wanted? You will do hundreds or a technical discussion. Or I don't know, even a code review where you stumble.
Understand that every failure is just another step towards the bigger vision, and that bigger vision, it's always becoming the best developer you can possibly be.