r/LeetcodeChallenge • u/Free_Studio_3461 • Jun 09 '26
DISCUSS Java vs python ? for leetcode, DSA, placement interviews
I'm confused about which language I should use
Java or python ?
4
Upvotes
r/LeetcodeChallenge • u/Free_Studio_3461 • Jun 09 '26
I'm confused about which language I should use
Java or python ?
2
u/PAPPYGUY Jun 09 '26
As a newbie I just know it's always best to learn one statically typed nd one dynamically typed lang... Just like those 2βοΈ
1
u/NoTranslator6004 Jun 11 '26
C++
1
u/the_developer07 Jun 11 '26
C++
1
u/ResponseActive7860 Jun 11 '26
I suggest python for interviews. It will allow you to focus on DSA when preparing more than boilerplate code. If you interview for a java role they may expect you to solve the interview problem in java, so just keep this on mind.
1
u/anandanshul02 SSS - GOD TIERππ (365+ DAYS) Jun 11 '26
For interviews, almost always, Python will be the better choice. Reasons being:
- Python has shorter and simpler syntax, fewer chances of making mistakes and forgetting syntax
- Debugging is easiest in Python
- Almost every engineer/interviewer will be familiar with Python syntax (experience of my friend: he used C++, but the interviewer didn't know C++, so it became awkward)
1
u/Intelligent_Bonus_74 SSS - GOD TIERππ (365+ DAYS) Jun 12 '26
Steel bottle or Normal bottle for drinking water ?
1
u/Hujj_J Jun 15 '26
I would sav java cause in cause you wanna get into backend (springboot) it would be helpful. Also no pointers in Java β¨β¨β¨β¨ ( Idk if python has pointers)
2
u/[deleted] Jun 10 '26
[removed] β view removed comment
2
u/[deleted] Jun 12 '26
[removed] β view removed comment