+ 3
What is the best way to learn data structure..
hee dude.. DS is most difficult for me specially linked list(insertion or deletion process)..plz suggest me how to learn DS. its problem is not only in linked list but whole DS. plss suggest me. I have to prefer topics array , linked list ,queue,tree. Want helpđ
3 Answers
+ 10
The best way to learn data structures is to solve as many problems on different data structure like arrays, linked lists, stacks,etc.
Try to think in different ways to solve the problem and how you will code the solution. If you are unable to find the solution, then look at the algorithm to get a basic logic of the solution and then try to code yourself. Then also if you are not able to solve the problem, then look at the solution and make sure you understand the solution completely. Try to understand all the possible test cases.
For example, in stacks there is condition for overflow, if top ==N-1 I.e. the top has reached the last element, it can't proceed further. Try to remember that way.
I would suggest CS Dojo youtube channel if you have many doubts. The data structures and algorithm videos are really awesome
+ 5
If you having problem in concept then watch MIT data structures videos from youtube and other than that you just need practice you can't get things in one or two days it takes time just be consistent and practice as much you can.
+ 3
Try imagining you live in a world full of data without yet discovered/invented Ds.. Think of any ways you would structure the data for efficient access. Implement your thoughts in any language you are good at. If you understand your invention then it will be easy to understand those we use today. Work around simple Ds like SLL before diving to complex ones. Videos on youtube can help a lot too.