
Friend lost an opportunity because of something he didn't have no authority of.
One of my good friends had applied to a 1YoE+ opening in a well known big MNC. He was contacted by the recruiter about this opportunity. First round was screening on HackerRank. He said the questions were easy, like the smoothest cake walk anyone can have. But he faced a lot of issues with the online IDE that the platform provides and he could not complete the test in time and hence got rejected.
I too had applied for the same opening right after him. I did not face many issues in my test, but there were issues which irritated me. After giving the HackerRank test, I casually pinged him and while talking about it, I got to know that we both had got the same set of questions asked. And the fun fact was, though our approaches were a bit different(like very minor), the output obtained was the same. But weirdly, despite getting the same outputs, all my test cases passed while his had failed. How is that possible, is something both of us are wondering about RN.
I suggested him to reapply by creating a completely new profile and everything because, he's a far better developer than me who deserves this opportunity, and it's sad to see him loose such a good opportunity to work at one of the dream teams.
But he said he can't take that path I recommended because he would feel guilty about it, knowing that he already knows the test questions and would easily clear that, which feels like cheating.
I'm asking amazing people here what he should do ? Do what I said OR just let go of it assuming it was his fate ?
We have been actively applying to many openings but because we don't have more than a YoE, we have barely got opportunities coming our way. So, I suggested to him "desperate times call for desperate measures".

Which mnc are we talking about here? I'll also apply

Ask him to explain the output situation to the recruiter.most of the recruiter’s ask candidates to re apply. There is nothing wrong in applying with new ideas.

He did reach out the recruiter, but never got any response. That is when I suggested him my idea.

Stannis Baratheon once said that ned stark was honorable man. You are like your father
Jon snow - that is great honor to me
SB - i didn't mean likw that. Honor got him killed.

Ask your friend to visit mahatma gandhi samadi in raj ghat every quater. Mahatma meets mahatma

He thinks, being honest and gentle in a brutal world will make things better for him 🫠. That's the reason I exist as a friend for him. Like a reality check consultant 😂

Why they still have stdout kind of tests! Leetcode does it better, by asking you to write functions.

As someone entering the job market, you need to be familiar with your language of choice and how it is interpreted by your online judge.
I faced the same issue while long back while working with ruby code.
Writing to STDOUT directly, vs using “puts”, vs using “pp” pretty print.
All three are interpreted differently and while working on string manipulation questions, these things matter a lot.

Is it possible he was outputting something with leading and following whitespaces or maybe hackerrank was also doing type checking which his output was failing

From what I remember in the console of the test case expected output, it was completely a string and it was reading right off the frontend display element via actively listening to the changes to the UI element. So, on frontend AFAIK, everything is a string datatype. I don't think that was the issue.
Yes, even I mentioned about whitespace or character mismatch, to which he said that he did make sure everything was same as shown in the test description, including character case.
