This is my code
I was only able to pass one test case
SIr I had tried https://ide.codingblocks.com/s/227385 but stil I am unable to get the desired passing of all the test cases. Sir please can you see my code
@Gunit getting equal element is also valid as per question so don’t take that case separately look at this code i have upadted it in yours
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.