Sir, i have a doubt in the code

sir, at 14:31, sir, hmara stack empty ho chuka hai. phir bhi ham ’ s.top ’ kaise find kar rhe hain ? for finding the area {s.top*right}.

hello @chandreshmaurya

empty case ke lie if statement chalega , aur waha pe hum stk ka top nahi access kar rahe.

else part tabhi chalega jab stack empty nahi hoga, aur isiliye waha pe st.top() use kar sakte hai

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.