the utput is partially matching
kindly figure out the problem in the code.
the utput is partially matching
kindly figure out the problem in the code.
Hey @shabadsingh , your k reverse function is working absolutely fine, the mistake you are doing is in your main function in line number 79, you are calling function like this
reverse(head,k);
which returns a node
instead you should call like
head=reverse(head,k);
and then print it so that your new head is updated.
Happy to help
Keep coding 
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.