News for hackers. Stuff that matters.

Fastest Way to Learn Data Structure and Algorithms?

So I am learning algorithms recently, I have learned Sorting and searching ones but I am forgetting them constantly. How can I understand them so that I don't have to always look for the solutions. Any tips or resources appreciated.
( 7 comments | 2 points | on HN )
Re:Fastest Way to Learn Data Structure and Algorithms? by AstixAndBelix on Friday January 20, 2023 @11:57AM (#34455994)
The same way you study anything else: spaced repetition, active recall, memory palace, etc.
Re:Fastest Way to Learn Data Structure and Algorithms? by tsingy on Friday January 20, 2023 @01:20PM (#34457334)
I'm doing this https://sp21.datastructur.es/ + leetcode.
Re:Fastest Way to Learn Data Structure and Algorithms? by swman on Friday January 20, 2023 @02:18PM (#34458281)
Implement them
Re:Fastest Way to Learn Data Structure and Algorithms? by jytechdevops on Friday January 20, 2023 @02:50PM (#34458801)
kunal kushwaha (not sure if i spelled the last name right) really helped me fill in some gaps.

that being said, i had to do a little bit of leetcode instructions + books + algoexperts + youtube to really grasp all the gaps I had in my knowledge.

everyone has their own preferred way, i just wanted to share that it took various resources for me.

Re:Fastest Way to Learn Data Structure and Algorithms? by Rakib_7 on Saturday January 21, 2023 @01:48AM (#34464455)
Thanks for the suggestion will definitely check it.
Re:Fastest Way to Learn Data Structure and Algorithms? by sn9 on Friday January 20, 2023 @07:20PM (#34462226)
Check out the Learning How to Learn course on Coursera.
Re:Fastest Way to Learn Data Structure and Algorithms? by raincom on Friday January 20, 2023 @07:27PM (#34462295)
In any algorithm, you see temporary data structures, ranging from string variables to abstract data types(say, arrays, queues, stacks, priority queues, etc). So you have to remember which to use in what kind of problem solving: in depth first search, the temp one is a stack; in breadth first search, the temp one is a queue.

Similarly, in some set of problems, you need to remember tricks wrt swapping members in a structure and start solving the problem again.

Wherever you have troubles, jot down and refocus on those problems after a month. It’s like spaced repetition. Spaced repetition is not necessary if you are involved with such projects all the time, like the way library writers do.