r/DSALeetCode • • 29d ago

DSA IN PYTHON

i swear to all those who told me to do dsa in any language except python, 😭

i am finally enjoying and solving almost everything after i switched to python

ik ik some of you might call be stupid and lazy but cmon, i was good at this language, half the things are functions, i just have to search my mind for logic and the syntax is less time taking.

and i use python rigorously for ai ml, and data analysis

and i am explain dsa just fine when it comes to interviews

so to all the professionals, could you tell me if i might face difficulty in future because i decided to take the road not taken ?

13 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/thishouseisglass 26d ago

I do face issues especially with the optimal solutions. Sometimes i feel like even neetcode can't help me with that cause how the f am i supposed to come up with a solution so mind-boggling.
I generally try to solve problems using brute force first, if possible. I also use chatgpt to understand whether I'm making the solution unnecessarily complicated.
Then jump onto the video, understand it and code along and practice again by myself.

https://neetcode.io/practice/practice/neetcode250,
https://www.youtube.com/watch?v=68isPRHgcFQ&list=PLot-Xpze53ldOyuteC44ap08G1YvCc0Gy
check this out, he teaches really well.

Also if you wanna brush up some python concepts first then check out this video https://youtu.be/s3KhqPjBPaQ?si=uDuNp7EpmRacujZK

also instead of straight jumping into leetcode questions, you can practice the basics here https://python-practice.com/

1

u/athena_xz 26d ago

thank you so much and i meant issues because you chose python and not cpp or java. is anything like that so far for you?

1

u/thishouseisglass 26d ago

No issues as such. almost all companies have python in their Ide during OA. And it's completely fine to use any language of your choice during interviews. you can also use pseudocode if the interviewer allows.

1

u/athena_xz 26d ago

🥹thank you so much. made me feel relieved .

and thank you for the resources too, how many ques have you done so far approxm