Add last for linked list

In the following code


why we have use the else part when we are checking for the condition size==0
because else part of size==0 and condition for size>=1 gives the same meaning.

in the if section size==0
we have setted the tail and size.

but for size>=1 we haven’t mark the tail and size

hope this will help u

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.