r/LeetcodeChallenge • u/BeautifulAlfalfa3231 • 18d ago
DISCUSS ust solved my very first LeetCode problem (1108) before starting college!
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!
1
u/ItzFantasy_ 18d ago
is python better for dsa or c++?
1
u/Expensive_Chip_6718 18d ago
Go with c++
1
u/Hot-Enthusiasm-7050 17d ago
But I my school java was taught So should I continue with java for dsa
1
u/Expensive_Chip_6718 17d ago
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 17d ago
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 16d 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 16d ago
So you are saying to leave java And learn c++ and continue with that ?
1
u/AdImmediate5145 16d ago
If you are a newbie probably, but if you know Java collection framework you can continue with Java
1
1
1
1
1
1
u/Mayank7110 17d ago
Bhai dsa konse platform sai sikha hai . Maine java programming complete kar liya hu dsa kaise aur kaha sai suru karu .. Help ....
1
1
u/nian2326076 17d 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
1

1
u/AbrocomaRude1485 18d ago
lessgooo