Now I've also recalled one thing, which therapist have told to me. She have said that I'm not objective when I compare myself to others. That it is actually nearly impossible to find a person who would be better than me in everything, so when I think that I'm totally worse than some of my acquaintances from the University, it is not quite correct. I should learn to notice the things, in which I'm better than persons I envy to. I've tried and - yes, at least, this helps me be less envious and think better about myself. Maybe you could try to use this advice as well.
The decision to take a year off from studying seems suitable. Saying from my own experience, work and serious studying are extremely hard to combine, so if you have not enough strenght right now, such a stress will drown you even more deeply into exhaustion. So it seems like you should refuse either work or studying, at least, for a while, to not break down yourself entirely.
When I had such a dilemma, I've sacrificed work, but have continued studying. But of course, if you have no saved money right now, no study grants and no financial support of others, this option becomes unavailable.
P.S. If you'll need help with algorithmic coding interview preparation, feel free to ask. I know good resources for studying all of the topics from them. When I will rest enough to recover my ability to cognitive efforts in enough degree, I will also be able to help with doing fake (training) interview.