https://ide.codingblocks.com/s/364115 its not passing test cases pls make corection in my code
Find the greatest element stack 1st challenge
hello @shrutikatyal please dry run your code for this input and you will find where you are doing wrong :
4
8 2 3 6
your output is different from the expected output .
i don’t understand how to implement circular part give some hint for that
hello @shrutikatyal you can do this by using the indexing of the array .
because with the indexing you can do the appending at that location and access the element at that location as well .
here i am attachint the code for your reference :
if you have any doubt you can ask here .
Happy Learning !!
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.