How to learn DSA after being an android dev for 6 years
Hello devs,
Just completed my 2nd year in a tier 1.5 NIT [CSE].
I have been an android developer (Java), Backend Developer (Python, PhP) for 6 years.
I have been doing freelancing and development since 2020 covid, so I have really great experience with code.
Since I have finished 2nd year, I am now planning to learn DSA (Java) finally.
But I am really confused right now, sometime I think I should start learning all the topics first (like all sorting, and other algorithms) and then practice leetcode.
But sometime I think I should learn one topic and then should solve problems based on it, I tried this approach but I really could not solve any problem on leetcode at all.
Please suggest me the right approach to complete main course of DSA within 2 months.
I am really fully experienced in Java, so I don't need to learn things like OOPs, Array or string as I have used them throughout, but I don't know algorithms.
I am targeting these companies in my 3rd year to get intern: Goldman Sachs, Google, Amazon.
Additionally, I have apps on play store, and I have been also a GSoC contributor in 2025.