Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Algorithms/Linked list Algo
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
STEPS:

1.first=new node;{create the 1st node of the list pointed by first};

2.Read(Data(first));

3.NEXT(First)=NULL;

4.Far a First; [point Far to the First]

5. For I=1 to N-1 repeat steps 6 to 10

6.X=new node;

7.Read(Data(X))

8.NEXT(X)=NULL;

9.NEXT(Far)=X; {connect the nodes}

10.Far=X;[shift the pointer to the last node of the list]

[end of For Loop]

11.END