tried to traverse till n-k using temp.
created two new nodes… newNode and temp2 both pointing to temp->next. broke the link by temp->next = NULL. took newNode till the end and pointed it to the head given initially and now returned temp2 which is the new head.
Logic issue. Can’t understand
Logic issue in kthappend function
the share option of ide not working. any other way i can send you the code?
go to this link -> https://ide.codingblocks.com/
paste ur code and then press ctrl + s and then save
a url will be generated in ur search bar , share that url with me
check now->
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.