2 ms·
Have you taken an algorithms course? Working through Skiena's Algorithm Design Manual [0] would be a good start and/or watching his lecture series on Youtube [
by sn9 4y ago
Have you taken an algorithms course?
Working through Skiena's Algorithm Design Manual [0] would be a good start and/or watching his lecture series on Youtube [1].
Other great books include Elements of Programming Interviews [2] which comes in Java, C++, and Python flavors.
It can help to focus on a smaller subset of Leetcode problems to learn the tricks that underlie most of them. Neetcode [3] is a good collection of those problems on which you could focus your time and efforts.
I don't think it's realistic to expect to do well on Leetcode without practicing the above skills to some degree, so I wouldn't be hard on yourself if it's been years since you even looked at the material.
[0] https://www.amazon.com/Algorithm-Design-Manual-Computer-Science-dp-3030542580/dp/3030542580 https://www.amazon.com/Algorithm-Design-Manual-Computer-Scie...
[1] https://www.youtube.com/watch?v=dphSwq5jP1A&list=PLOtl7M3yp-DXbHTFe_w9zFPXeau28CDao https://www.youtube.com/watch?v=dphSwq5jP1A&list=PLOtl7M3yp-...
[2] https://elementsofprogramminginterviews.com/ https://elementsofprogramminginterviews.com/
[3] https://neetcode.io/ https://neetcode.io/