Test cases failing

Could’nt figure out what testcases the code is failing for

hello @17311a0561

pls share ur code using cb ide

Okay…what’s the process to share?

paste ur code here-> https://ide.codingblocks.com/

save it , a link will be generated in ur search bar share that link with me

Can you find any error?

try for this case->
4
2 1 3 3

here is the approach->link

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.