where is a small-head and head after hitting the base case ?
Not confusion in recursive calls
if (head->next == NULL || head == NULL)
{
return head;
}
Node *small_head = reverseRecursively(head->next);
why small head is != second last node. after returning from base case head = secondlast node
at the end

reverseRecursively(head->next) =secondlast node ?;
confusion in recursion
basically *small_head stores the head of the linked list reversed recursively
I hope ur doubt is cleared
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.