Hi everyone,
I went through Microsoft onsite sometime in May 2021.
Recruiter told me that all the interviews are language agnostic.
So I chose Python for all the interviews.
But I do have C# mentioned in my resume and I have about 7 years of C# experience.
Out of 4 technical onsite interviews, one of the interviewer was very particular about me writing code in C#
It was a trees based question.
To my dreaded horror, I never practised algorithmic questions in C#!
It was all in Python! And I knew the question inside-out using Python only!
It felt like someone punched me real hard in the stomach.
I was dumbfounded. There was an awkward radio silence for a solid 30 seconds.
After which I told her that I practiced all data structures and algorithms in Python and I would like to code it in Python.
Clearly, the interviewer was not at all ready for this, but she finally said - ok.
I coded everything explaining loudly and clearly covering all the test cases, except one tiny test case.
In the end, after I coded the whole thing in Python, interviewer asked me about that missed out edge case and I fixed it.
Still not looking happy at all but was satisfied with my coding skills.
Those 45 minutes are the most awkward 45 minutes of my life, the interviewer did not speak a single word.
My reasoning is this:
We generally prepare interviews in the language of our choice, say, linked list representation, tree representation etc.
For example, Strucutre of trees in Python is strikingly different from the tree strucutre in C#.
And Interview is not a place to "experiment"
I am good with C# considering the other language aspects of it but not for the interviews.
Who is right? Who is wrong?
If I were you, what will you do differently?
I would love to hear any other thoughts in the comments!