not working for case 0
Greatest element
hello @bhattanurag426
the given array is circular , your approach works only on linear array.
example->
For input
3
3 2 1
Output should be
-1 3 3
can you please help me with the approach for circular array
sir still unable to solve
…
first read this approach to solve the problem for linear array-> link
and then try to read my response again
got it sir…
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.