Is Java too much for coding interviews vs Python?

  1. Sounds like you know your Java, just stick with it unless you are taking too much time to the point where you can’t finish.

  2. As a guy who codes in Python all the time, I'd say it doesn't hurt to learn Python. It's easy learn, easy to write, easy for ppl to understand(imo).

  3. I have given a chance to Python, but I’m forgetting things on how to do in Python, for example how to sort is a little complex in py, adding number to char is not Straight forward.. some times reversing array and string substring you can forget all those if you are not doing often.. i don’t even know how to do tree set heap etc in Python.. i understand that it takes time but it’s not easy

  4. Stick with Java. Most of the companies I interviewed with asked to compile and run. So syntax matters. Now the other reason I’d go with Java is that LC solutions written in python are just way too hard to understand because people went too far of pythonic “symplicity”. If interviews can’t understand your code you are not gonna have a good time explaining, same can be said about scala. Credential: 10+ offers every time I look for job.

  5. There’s always the people that say to just learn Python like they get a commission for every user or something. If you’re already extremely comfortable with Java you should stick with it.

  6. it's because learning python is really easy. I've been a java dev for years and still find myself faster on lc when using python. Barely a couple months since I've learnt python for a new job

  7. Use whatever you are more comfortable with. I think switching to python would waste your time and you wouldn't be that good in it compared to Java.

  8. I mean with practice, he will be able able to become fluent in python fairly easy. I don't think it would be a waste of time as it's way faster to write code in python. It literally looks like pseuduode in a way.

  9. I asked myself this same question (except I was wondering if I should switch from JavaScript) and I ended up sticking with JavaScript. I don’t regret that decision.

  10. I use Java every day at work. I hate seeing Python solutions half the size as Java’s. Yeah I might lose some time typing stuff out but switching languages can be mentally exhausting

  11. I have used Java for my bloomberg interviews and google phone screen. If i was confused/forgot about a syntax i woukd just state to my interviewer that I cant recall exactly the function name but it looks like something like what I wrote

  12. What’s your timeline for interviewing? If you have a bunch coming up in the next month or two I’d stick with Java, otherwise long term, switching to python is probably worthwhile. General advice though is to use what you are most comfortable with

  13. Depends. I mainly use C++ for years and then when I started LC and HR it becomes too painful to write correct syntax (in limited time), and understand the errors (HR and LC are worse in throwing C++ errors and are not specific). So I learn PYTHON.

  14. Imagine during the interview you are searching some python API docs over internet, which would create a very bad impression to the interviewer and create a high chances of your rejection even though you solved your problem in best time complexity. Java runs through your blood right now. Switch to Python when you feel same for it.

  15. At my job I mainly use Java but for LC I only use python. It’s way better imo. It’s like writing pseudocode.

  16. I have heard companies who have a backend in java look gpr guys who can do DSA questions in java as the interviewer is familiar with it.

  17. Python is the best language, Java is probably the second best. I’d go with python unless you’re so good at Java that it wouldn’t make sense to switch.

  18. I have developed software for multiple in-production products where the main language is python. I still prefer C++ for leetcode lol

Leave a Reply

Your email address will not be published. Required fields are marked *

Author: admin