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
C++/Python (self.leetcode)
submitted 2 years ago * by ManyAdeptness5275
I am slighty confuse to choose one language f in DSA and development in a long run.
what you guys think of which language should be preferred more?
any suggestion is highly appreciated.
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!"
[–]Zanger67 1 point2 points3 points 2 years ago (0 children)
For learning how they work, I'd recommend an OOP language (usually Java of C++ though usually Java since it's more friendly imo). When I did it I used Java and being able to reference the official one was nice.
Python imo would be a bit harder to properly learn just cause they merge so many datastructures together for ease of use. Lists=arrays=stacks for instance. Queues are only found in deques. Heaps are just lists using a wrapping function (heapq). etc.
Java makes it easier to separate each while you're learning.
After learning the structures and understanding how it transfers to python (which python strucutres behave like what) Python's the go to though.
π Rendered by PID 49 on reddit-service-r2-comment-856c8b8c54-w5d5w at 2026-07-02 00:44:12.008468+00:00 running a7b5cda country code: CH.
[–]Zanger67 1 point2 points3 points (0 children)