Python vs C++: Confused what to choose for interviews

Jan 5 18 Comments

About to start interviewing with relatively decent proficiency in C++ and Python. Currently using Python in my workplace. Used C++ at my previous workplace and school projects. Torn between the two choices since I'm not really an expert in either, but not too bad in both. I will begin my LeetCode journey accordingly.

C++ Pros / Cons: Libary support, widely used compared to Python, etc. / Memory management, pointers, nitty-gritty's about OOPs, etc.
Python Pros / Cons: Easy to code and understand (less verbose), etc. / Lack of support for basic data structures (ala STL C++ libraries) that gets asked quite a bit in interviews, etc.

Which language would you suggest I go with? Is there a negative bias against Python? I am interested in applications engineering/Full-stack kind of roles at top places like Google, FB, etc.. #leetcode #interviews #python #C++

114 VOTES SELECT ONLY ONE ANSWER
VOTE VIEW RESULT

comments

Want to comment? LOG IN or SIGN UP
TOP 18 Comments
  • Facebook / Eng bytect
    I would strongly caution against cpp in interviews. It’s much more verbose and easier to make mistakes in. Python is so much easier to code effortlessly in on a whiteboard. For anything the standard library is lacking, you can always just say, “For now is it okay if I assume I have a trie with this interface? I’m happy to implement it later at the end of the interview.” Works like a charm for me.
    Jan 5 0
  • Citadel BrutеForce
    Loled at "cpp widely used compared to python". And I'm at the company that use cpp havily .
    Jan 5 0
  • New numaye
    If you want to interview at places like HRT I suggest C++
    Jan 5 0
  • Use boost:: python exclusively.
    Jan 5 0
  • Amazon rowdyguy
    Python has lack of support for basic structures? Huh?
    Jan 5 7
    • Amazon rowdyguy
      So give me an example whiteboard problem where you think the distinction is important
      Jan 7
    • Amazon clfkeix
      I learned the hard way, wouldn’t want to spoil the opportunity for you
      Jan 7
  • Microsoft / Eng tatun
    Pick one. Practice it, so you can fluently whiteboard with it.

    Most interview problems are solvabale with both, rather any language, but your confidence and fkeuncy matters, if you fumble with syntax error it doesn't look professional, if you struggle with the right constructs, your focus of the actual problem gets hindered, and that never is good.

    Support libs etc don't matter for interviews.
    Jan 5 1
    • Reliable Software / Eng Sugoidesu
      Yeah support libs are not important for interviews as they are for competitive programming
      Jan 6
  • Google cjze
    possibly the most obvious question ever asked
    Jan 5 0
  • IEEE / R&D karumba
    It depends on what the interview position is. If there is no preference or if the position is ML based it is same to use Python.
    Jan 8 0
  • Microsoft 🐨 koala
    Had no problem clearing G & FB with C++
    Jan 5 0
  • Amazon big_boy
    I vote depends on which you want to use
    Jan 5 0

Salary
Comparison

    Real time salary information from verified employees