You are not alone bro, we all went through such phases.
Hang in there, keep applying. All you need is 1 YES among so many rejections.
Believe me no one is behind and no one is ahead in these placements race.
I myself couldn't crack the mass recruiter's simple aptitude tests. TCS, Infosys, Capgemini, couldn't even reach the interviews for these companies while my friends were having 2-3 offers.
I was not good with competitive programming and aptitude but i had some good projects and internships.
I kept applying off campus through linkedin and finally after 100 rejections got the remote offer with the package that none of my friends got.