time and space complexity of linked list
time and space complexity of linked list