FIND THE GRETER ELEMENT!

I’d solved this question using array, kindly tell me the approach better than this!

Hey @CODER_JATIN you have done it using array, for better time complexity we can do this question using stack. I am attaching a thread below, consider it for better understanding Explanation using stack

Can you please tell me the approach?

ese samajh ni aa rha …

Watch this video, it’s explained well. Hope this will help

PLEASE SEND THE VIDEO LINK

Here it is https://www.youtube.com/watch?v=_t_GfZ5QBUY&feature=youtu.be&ab_channel=babybear4812

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.