We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
It's through recursion,
ex : 1->4->8->9
In this first the head will move till head is NULL
and then returns control to the previous call
then printing of the last ele is done
then the control is returned to the previous call
then printing of the last second ele and so on.
Print in Reverse
You are viewing a single comment's thread. Return to all comments →
C++ solution
how it works??
-
It's through recursion, ex : 1->4->8->9 In this first the head will move till head is NULL and then returns control to the previous call then printing of the last ele is done then the control is returned to the previous call then printing of the last second ele and so on.
really...its a wonderful thought