Inserting node at the begging of linked list
Step1: Start
Step2: if AVAIL =NULL then,
Print “Overflow”
Step3: Set New = AVAIL & AVAIL = LINK [AVAIL]
Step4: Set info[NEW]=item
Step5: LINK [New]= START
Step6: Set START = NEW
Step7: End
No comments:
Post a Comment