From 950a9f3df63fda02939d8fa471f0711d81df6079 Mon Sep 17 00:00:00 2001 From: arya-coder-1 <73031641+arya-coder-1@users.noreply.github.com> Date: Sat, 17 Oct 2020 21:24:44 +0530 Subject: [PATCH] Initiating/creation of Linked List --- Algorithms/Linked list Algo | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Algorithms/Linked list Algo diff --git a/Algorithms/Linked list Algo b/Algorithms/Linked list Algo new file mode 100644 index 0000000..625433e --- /dev/null +++ b/Algorithms/Linked list Algo @@ -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