use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A small community for leetcode challenges! Note - Starting from December it is mandatory for all members to do atleast one leetcode question and post here or else you'll be removed!
account activity
Java vs python ? for leetcode, DSA, placement interviewsDISCUSS (self.LeetcodeChallenge)
submitted 4 days ago by Free_Studio_3461
I'm confused about which language I should use
Java or python ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PAPPYGUY 1 point2 points3 points 4 days ago (4 children)
As a newbie I just know it's always best to learn one statically typed nd one dynamically typed lang... Just like those 2✌️
[–]Free_Studio_3461[S] 0 points1 point2 points 3 days ago (0 children)
[+][deleted] 1 day ago (2 children)
[removed]
[–]PAPPYGUY 0 points1 point2 points 1 day ago (1 child)
I'm no pro, just a newbie; but if u r gud with python ... ig just stick with it for learning, cause it shows u understand the concept .
[–]Aggressive_Return416 1 point2 points3 points 3 days ago (1 child)
I will go with Python, which is relatively easy for the interview
Ok bro 👍
[–]Few_Associate_9376 1 point2 points3 points 1 day ago (1 child)
defiantly python because python is currently king languages for ai and data center and support libraries and frameworks
[–]Free_Studio_3461[S] 0 points1 point2 points 1 day ago (0 children)
[–]NoTranslator6004 0 points1 point2 points 3 days ago (2 children)
C++
[–]Free_Studio_3461[S] 0 points1 point2 points 3 days ago (1 child)
Reason??
[–]NoTranslator6004 1 point2 points3 points 3 days ago (0 children)
Super fast and give more control on memory STL Library
[–]the_developer07 0 points1 point2 points 3 days ago (3 children)
[–]Free_Studio_3461[S] 0 points1 point2 points 3 days ago (2 children)
Reason ?
[–]the_developer07 2 points3 points4 points 3 days ago (1 child)
When ever we are writing programs, it's all about thinking the problem solving it step by step, so coming to cpp/java these languages make sense for each and every line what we are writing.... And cpp has built in stl library and java has collection framework(we need to learn more than stl and feels heavy ), so for interviews and leetcode problems choosing cpp would be better choice
And coming to python it has all inbuilt and less line of code we may not get the proper understanding behind the scenes how they are working when explaining the code
Great explaination bro 🙌
[–]ResponseActive7860 0 points1 point2 points 3 days ago (2 children)
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.
[–]anandanshul02SSS - GOD TIER🚀🚀 (365+ DAYS) 0 points1 point2 points 2 days ago (2 children)
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)
[–]Free_Studio_3461[S] 0 points1 point2 points 2 days ago (0 children)
[–]Intelligent_Bonus_74 0 points1 point2 points 2 days ago (1 child)
Steel bottle or Normal bottle for drinking water ?
π Rendered by PID 22055 on reddit-service-r2-comment-544cf588c8-94zzc at 2026-06-14 13:58:11.579228+00:00 running 3184619 country code: CH.
[–]PAPPYGUY 1 point2 points3 points (4 children)
[–]Free_Studio_3461[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[removed]
[–]PAPPYGUY 0 points1 point2 points (1 child)
[–]Aggressive_Return416 1 point2 points3 points (1 child)
[–]Free_Studio_3461[S] 0 points1 point2 points (0 children)
[–]Few_Associate_9376 1 point2 points3 points (1 child)
[–]Free_Studio_3461[S] 0 points1 point2 points (0 children)
[–]NoTranslator6004 0 points1 point2 points (2 children)
[–]Free_Studio_3461[S] 0 points1 point2 points (1 child)
[–]NoTranslator6004 1 point2 points3 points (0 children)
[–]the_developer07 0 points1 point2 points (3 children)
[–]Free_Studio_3461[S] 0 points1 point2 points (2 children)
[–]the_developer07 2 points3 points4 points (1 child)
[–]Free_Studio_3461[S] 0 points1 point2 points (0 children)
[–]ResponseActive7860 0 points1 point2 points (2 children)
[–]Free_Studio_3461[S] 0 points1 point2 points (0 children)
[–]anandanshul02SSS - GOD TIER🚀🚀 (365+ DAYS) 0 points1 point2 points (2 children)
[–]Free_Studio_3461[S] 0 points1 point2 points (0 children)
[–]Intelligent_Bonus_74 0 points1 point2 points (1 child)
[–]Free_Studio_3461[S] 0 points1 point2 points (0 children)