NewWeRoRo

For Algorithm Questions, what language do you prefer?

Hello, I have upcoming interviews from Microsoft, Amazon, and so on. I'm a new grad student. I have practiced algorithm questions by using Python. For Design, I have used C++. The problem is my brain getting weird since I have used Python, C, C++, Java at the same period. I often forget which builtin function is for which language. So this time, I want to choose one language to prepare for interview. I'm going to choose C++ or Java. Which one is better for Algorithm and interview? Because of pointer, C++ could be better to use, but I'm not perfect to use pointer in C++, java could be better for whiteboard. Could you please help to choose one? Thanks for your time.

Microsoft k5nm29 Oct 2, 2017

C#

Microsoft mintyMoose Oct 2, 2017

I would say python for general algorithm / oop questions due to its simplicity and syntax (java is pretty verbose). If it gets specific on performance issues, c++ would probably be a better choice

Epic KHCx54 Oct 2, 2017

How did you get past the Microsoft phone interview? I had lots of behavioral and nailed the brain teaser. Not sure what else was expected.

HealthNow bleepbIoop Oct 2, 2017

pseudo code + language of choice they don't expect perfection, they want to see how you work through problems

Juniper zzq Oct 2, 2017

The language that is second nature to you