Wrong Ans in 1 case!

Can you please check my code for any possible error?

https://codeshare.io/Gk9qOL

hello aman.
the issue is in ur remove duplicate function.
use set of vector it will remove duplicate automatically

I did what you asked. https://ide.codingblocks.com/s/199985. Still the same test case is failing.

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.