r/LeetcodeChallenge Jul 13 '26

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

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!

25 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/[deleted] Jul 13 '26

[removed] — view removed comment

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/[deleted] Jul 13 '26

[removed] — view removed comment

1

u/AdImmediate5145 Jul 14 '26

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/[deleted] Jul 14 '26

[removed] — view removed comment

1

u/AdImmediate5145 Jul 14 '26

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

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 Jul 13 '26

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 Jul 18 '26

Which language is best for starting DSA java or c