NEXT GREATER ELEMENT FOR EVERY ELEMENT

how to do this question using stack, any hint?

Hey @sheikhhaji18 see this thread
For better understanding

bro can you dry run on this array plz @mr.encoder @mr.encoder u there?
6 8 0 1 3

Hey @sheikhhaji18 please wait . I’ll reply asap.

If you want code for the same, check this link

thank you very much @mr.encoder

It took a lot of time, just make it count

Can i mark this doubt as resolved now?

okay you can mark it as resolved

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.