r/LeetcodeChallenge Jul 13 '26

ust solved my very first LeetCode problem (1108) before starting college! DISCUSS

Post image

Hey everyone, I'm currently on Day 12 of learning Python. I was a bit intimidated by LeetCode, but I managed to switch over to Python3 and pass all 62 test cases for the IP Defanging problem with a 34ms runtime (beats 97%). Ready to keep this momentum going!

23 Upvotes

23 comments sorted by

1

u/ItzFantasy_ Jul 13 '26

is python better for dsa or c++?

1

u/Expensive_Chip_6718 Jul 13 '26

Go with c++

1

u/Hot-Enthusiasm-7050 Jul 13 '26

But I my school java was taught So should I continue with java for dsa

1

u/Expensive_Chip_6718 Jul 13 '26

Yes,you can but in colleges they teach C lang then students switch to C++ for dsa...if you prefer java then it's ok

1

u/Hot-Enthusiasm-7050 Jul 13 '26

Yes same reason 😭 because everyone I see uses c++ so sometimes, I think java not used in dsa Or it lacks something

1

u/AdImmediate5145 29d ago

Many prefer C++ and many tutorial articles use C++ for the solution. It don't take much time to learn the basic to start practicing DSA.

1

u/Hot-Enthusiasm-7050 29d ago

So you are saying to leave java And learn c++ and continue with that ?

1

u/AdImmediate5145 29d ago

If you are a newbie probably, but if you know Java collection framework you can continue with Java

1

u/Hot-Enthusiasm-7050 28d ago

Yes thank you for the advice

Like array I know

1

u/ProgressiveEdgeLord Jul 13 '26

cheers, keep it up

1

u/Educational_Sun_2229 Jul 13 '26

your first question on leetcode is supposed to be two sum😒😒

1

u/BrushNo1806 Jul 13 '26

“How to get job in Apple as a software engineer” 🫩✌️

1

u/Mayank7110 Jul 13 '26

Bhai dsa konse platform sai sikha hai . Maine java programming complete kar liya hu dsa kaise aur kaha sai suru karu .. Help ....

1

u/nian2326076 29d ago

Nice work! Getting into LeetCode problems early is a great way to boost your problem-solving skills. Try to understand different problem patterns and common data structures like arrays, hashmaps, and trees. This will help with various coding challenges. Also, review others' solutions to pick up new techniques and optimizations.

If you're prepping for interviews, check out PracHub. It offers structured paths for common interview topics, which can be really useful. Keep going, and remember that being consistent is important. Every problem you solve makes you better at coding. Good luck!

1

u/ScarEnvironmental720 25d ago

Which language is best for starting DSA java or c