Getting wrong answer


please help where i am getting wrong

Hi @711tri
u will have to sort ur vector on the basis of ending point .(not on the basis of radius :x: ).
Since in this question u need to follow greedy approach u need to first select the circle which ends first.
try sorting in d above manner.
Hope dis helps.
feel free to post ur doubt if some thing is still not clear.