
Find the greater element
My code is not working for similar elements.please explain me how to modify my code?
@Prabhleen_sheenu given array is circular array so if you don’t find required greater element in front then travesre from start of the array again.
sir, i am not sure how to implement this part can you please help with this?
you can look for it in the solution section of leetcode from where you are trying this question or also available in geeksforgeeks.
