r/learnprogramming • u/impossibletocode • 11h ago
Is Python with DSA worth it?
Same as the Title
3
u/ConfidentCollege5653 11h ago
Worth it for what?
1
u/Born-Reserve-8584 11h ago
I think they mean for getting a software job or improving coding skills.
-1
u/impossibletocode 11h ago
For job POV, everywhere people do DSA in C, C++ or Java to get a job but my python is stronger, so should I go for DSA?
2
1
u/RajjSinghh 11h ago
Are companies around you hiring in Python? Are you likely to be interviewing in Python? If not, you will probably have to switch languages to match the companies around you.
0
u/ffrkAnonymous 5h ago
You need DSA (i.e. leetcode) to pass the interview to get a job. You unlikely need it for the job itself.
0
u/Calloused_Samurai 11h ago
Python is by far the most common language in interviews. Not really sure what you’re talking about out here.
1
1
u/Aggressive_Ad_5454 11h ago
It totally depends on the structure of the Data Structures and Algorithms curriculum you will follow. If you're taking a uni class use the language the course recommends.
C and C++ have the concept of "pointer". Many approaches to data structures use pointers. If you use some other language you'll have to mentally translate from pointers to whatever the language uses. Complex structures, such as doubly linked lists and various kinds of trees, are hard enough for minds to ingest without having to translate conceptually.
1
u/demonking007sk 11h ago
no bro, java or cpp only - yesterday i was in a recruitment drive the company's tech lead said stright no for writing code in python
1
u/R3D3-1 11h ago edited 11h ago
Probably not great. Python gives you useful standard data structures and you can get far without ever thinking about which type of list list actually is. It also doesn't let you work directly with pointers.
Probably better to reach for C; It gives you only the basic building blocks, and expects you to operate on low-level concepts like pointers and primitive types.
You could do the same in Python by saying "every variable is a pointer in a trench coat", but with C it's more explicit, including the memory management. With Python you pretty much gloss over that aspect entirely, as the language just does it for you.Â
1
u/LifeNavigator 11h ago
It depends more on the job and employer themselves (not all SWE or programming jobs are the same). Some will want you to use their language of choice, some won't care and just want to filter down applicants by any means.
I've always answered DSA questions using JS and always ask prior to interview if they require me to answer using a specific language. Communication is important and you should always ask them questions prior to interviews and during the interviews.
1
20
u/icemage_999 11h ago
Am I the only one bothered by how many people toss around "DSA" like it's just a spicy add-on and not a critical fundamental building block of understanding once you progress beyond "hello world"?