From 8e583cf03bad4468c58ffc838570d23a7a357f55 Mon Sep 17 00:00:00 2001 From: sahib-007 <73030244+sahib-007@users.noreply.github.com> Date: Sat, 17 Oct 2020 20:48:18 +0530 Subject: [PATCH] Algorithm to Create Linked List --- Creation Linked List | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Creation Linked List diff --git a/Creation Linked List b/Creation Linked List new file mode 100644 index 0000000..625433e --- /dev/null +++ b/Creation Linked List @@ -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