406 views
0 votes
0 votes
Can any one tell ?

How should i prepare programs for Linked list addind nodes their deletion.

I used to learn the programs its not that i dint understand but still i had to learn.

But now there are so many subjects so it is not possible to learn each and every Data Structure program like of trees graph DFS BFS etc and many other .

How to overcome this Difficulty .

Somebody please help and guide me ?

1 Answer

0 votes
0 votes

Linked List programs are very easy if you have strong pointers concepts and know how the memory is allocated during runtime.So i will suggest to study first 

1) how to use struct ,typedef 

2) How pointers are declared and used,understand the significance of "ptr->next" frequently used in linked list programs, How to move to next node of linked list,How memory address changes when you perform ptr=ptr->next.... Understand these basic concepts and then move forward

3) how malloc works

Study these topics in detail and clear all your concepts then only linked list programs will become easy, otherwise they will keep disturbing.

Also after clearing your concepts on these topics, first start with basic programs like

How to create a linked list, 

How to display elements of linked list,

How to insert node at beginning etc and then move to complicated programs....

Related questions

1 votes
1 votes
1 answer
3
ankit_thawal asked Jan 15, 2018
296 views
To detect collision in CSMA/CD.What is the condition?Tt=2*TpOR Tt=Tp
2 votes
2 votes
0 answers
4
ankit_thawal asked Jan 14, 2018
279 views
Can Anyone please post the diagram which describes the relation between P, NP, NPSPACE, NP-Hard, EXPONENTIAL TIME etc.