please help to give the correct code solution and please give the corrected link following the hint techinique
I saw the hint and implemented it but answer did not come right
- You should do insert at tail, also add the base case inside insertTail() that if head==NULL, create new node for head and return.
- wrong class node, inside constructor you are doing d = data, it is opposite bro.
- Also inside the appendk function, you need to update the correct head before returning, i.e. head = curr.
I have done the changes in the code for better understanding but i will suggest you first try to do by yourself
this is the link https://ide.codingblocks.com/s/208621
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.