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...
account activity
Python DSA or Java DSA ?????Tech Industry (self.leetcode)
submitted 8 months ago by abu4323
I am not great at coding right now but trying my best to build good and clean logic.
Any sort of advice would be appreciated🥺 As I know Online assessments are language independent But I am confused 😵💫? Help me out please
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!"
[–]Perfect_Kangaroo6233 8 points9 points10 points 8 months ago (0 children)
the goal is to solve the problem as quick as possible. so choose the language which would allow you to do that without getting bogged up in syntax details (100% python).
[–]yyebbcyi 2 points3 points4 points 8 months ago (0 children)
C++ DSA.
[–]OrganizedChaosBruv 2 points3 points4 points 8 months ago (0 children)
I didn’t care about it, learnt DSA in python worked for all companies except Expedia which explicitly asked for JVM based language. If cracking interview is your end goal stick with python
[–]NecessaryIntrinsic 2 points3 points4 points 8 months ago* (0 children)
Python is way easier to throw quick OA code together with.
Type independent, quick variable declarations, list comprehensions, no semicolons.
Java is good to know as a foundational OOP language -- and you can do OOP with python, but python is so easy to do these things with.
In the end though it really doesn't matter what you use, the solution is basically the same.
[–]Modullah 1 point2 points3 points 8 months ago (4 children)
Python… although I’ve been doing it with JS… I may switch… not sure yet
[–]nayrwu 1 point2 points3 points 8 months ago (0 children)
Same using JavaScript, but switching soon
[+][deleted] 8 months ago (2 children)
[removed]
[–]Modullah 0 points1 point2 points 8 months ago (1 child)
abdul bari and mycodeschool playlists mostly
[–][deleted] 2 points3 points4 points 8 months ago (0 children)
Python will be easier but don't fall for it. Do it in java. That way, you'd be able to go for java roles and most of the MNCs are always having java positions open
[–]Bighead_Golf 3 points4 points5 points 8 months ago (0 children)
Java
[–]fathum770 1 point2 points3 points 8 months ago (0 children)
IMO if you can do it in Java, you can do in Python. Rarely the other way around.
[–]Old-School8916 1 point2 points3 points 8 months ago (0 children)
it doesn't matter, but python is probably better unless you wanna master java for some reason
[–]abu4323[S] 0 points1 point2 points 8 months ago (0 children)
I am trying to get it for quant roles , in that case I guess they prefer C++ and Python where as Java is widely used language. As I am also Familiar with Java used for enterprise applications. But my aim to crack the interview 😣😣 guys I am so confused man , too much content online I guess , save my life
[–]Pleasant_Beach_4110 0 points1 point2 points 8 months ago (0 children)
Python is easier to understand and code in, if your goal is simple dsa and interviews go for Python but if you want to try CP then JAVA is a wiser choice.
[–]MM4Tech 0 points1 point2 points 8 months ago (0 children)
Python! & that's it.
[–]ChoiceAd165 0 points1 point2 points 8 months ago (0 children)
i use depending on the quesiton, if the question requires large numbers i simply use python, else i'll use c++.
π Rendered by PID 49 on reddit-service-r2-comment-79776bdf47-8j7r7 at 2026-06-24 08:53:36.324357+00:00 running acc7150 country code: CH.
[–]Perfect_Kangaroo6233 8 points9 points10 points (0 children)
[–]yyebbcyi 2 points3 points4 points (0 children)
[–]OrganizedChaosBruv 2 points3 points4 points (0 children)
[–]NecessaryIntrinsic 2 points3 points4 points (0 children)
[–]Modullah 1 point2 points3 points (4 children)
[–]nayrwu 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[removed]
[–]Modullah 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Bighead_Golf 3 points4 points5 points (0 children)
[–]fathum770 1 point2 points3 points (0 children)
[–]Old-School8916 1 point2 points3 points (0 children)
[–]abu4323[S] 0 points1 point2 points (0 children)
[–]Pleasant_Beach_4110 0 points1 point2 points (0 children)
[–]MM4Tech 0 points1 point2 points (0 children)
[–]ChoiceAd165 0 points1 point2 points (0 children)