Where I am wrong


i am using set to store rocket distance which sorts element in ascending order. and i am printing kth nearest.
i am getting WA in test case 2

because in set when there are multiple same values they all reduce to one value .i.e
if you insert 1,2,3,4,4,3,3
set will only have 1,2,3,4.

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.