Bhaiya ye code chl kese rha hai.
sbse phele main mai reversebyrecursion call hoga ,fir jb reverse recursion chalega vo check karega ki stack empty hai ya nhi ,toh empty nhi hai fir top most element stack ka pop hojayega i.e d or firse reverserecursion call hoga and firse stack empty nhi hai toh firse top most element pop hojayega i.e c or firse reverserecursion call hojaga ab fir b pop hojayega and then fir a pop hojayega or fir jb reverse recursion call hoga tb stack empty hai to return (do nothing) hoga. ye do nothing return hota jayega call stack mai or fir insertatbottom chalega.
ab jb inseratbottom chalega stack toh empty hai toh push x hoga or x mai value a thi toh push a hoga
Pls read the discription and revert asap
@Madhavendra-Gupta-2240591552663161
Please see this once
After this if you have doubts we can resolve them via discussion
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.