Implement an array as a linked list in python/java or pseudocode. Assume the data entry is hard coded, you do not enter from terminal. Your array object must include at least the methods required to define the Abstract Data Type (ADT) Array. Test your program for robustness. If using pseudo code you will need to consider odd cases, etc Write up a summary of the big O complexity of each algorithm in your program (using counting tech- niques from Week 1 Workshop). In each case, write a sentence to explain the complexity. (You do not need to give calculations or formal proof here)
I want this in python code and explanation step by step
Answer:
Algorithms:
Step1: we have create link list which contains the value and next as null
Step2: we have create a module the node at the beginning and pass the value and we have add new node to next as head node and head. node assign the new node
Step3: Next we have create the module for insert at the last module if head node is null then head one assign the new node else if current next is not null then current .next null
Step4: Next module created for the delete the node if curr not equal to the null and curr value equal value then head node assign head node to next and return
Step5: if curr not equal to the null and curr value is not equal to null then assign previous as current and curr to curr next
Step by step
Solved in 5 steps with 2 images