Not confusion in recursive calls

where is a small-head and head after hitting the base case ?

Hi @amit0001… pls share the code snippet u are referring to

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 :point_down: :point_down:
reverseRecursively(head->next) =secondlast node ?;

confusion in recursion

r u there @Vaibhav277

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.