Programming Language For Interview

Kony
NobitaNobi

Kony

NobitaNobi
Aug 28, 2020 6 Comments

I have good grip on cpp and has been using the same past 6 years for coding questions.
Have solved nearly 270+ on leetcode using the same. Recently i have started interviewing and at few companies i was asked to code in Java. I know for Java concepts but have never used for ds/algo.
Should i now switch to java?If you have faced similar situation please comment the different approach you guys tied.
YOE : 3 years
Location : India
#engineering #software #coding #leetcode #interview

46 PARTICIPANTS SELECT ONLY ONE ANSWER
VOTE VIEW RESULT

comments

Want to comment? LOG IN or SIGN UP
TOP 6 Comments
  • Well first of all switch to python.
    Aug 28, 2020 0
  • Switch to java, all enterprise software is written in java. Cpp is good for CP for time benefits. Java checks all boxes both for interviewer as well as candidate. Its statically typed, ain't too easy (python makes writing some programs simply too easy which is not tasteful as interviewer) , java doesn't ever push you towards pointers. I love cpp but even with cpp17 its syntax is weird and looks plastic (eg tie, tuple apis etc) . Another reason to switch to java is that unless you're targeting faang all other companies give preference to people from same stack as theirs. And most of enterprise is being written in java.
    Aug 28, 2020 2
  • I agree with you @zajj
    Although I do think it’s useful to know python for interviews precisely because it makes some things really simple. You typically don’t waste time with mechanical work, and focus on showing the interviewer that you can solve the problem.

    For real world use, Java is definitely better - performance vs cpp doesn’t matter too much for data oriented systems.
    Aug 28, 2020 0
  • Yes, but more often than not they allow you to assume such abstractions in cpp/java and go on with writing the meat. But when it comes to coding, with python its harder to judge clever implementation techniques up your sleeves, generics, and LLD skills as an interviewer. Now its not to say we shouldn't learn python, its great language where you can use it.
    Aug 28, 2020 0