please help where i am getting wrong
Getting wrong answer
Hi @711tri
u will have to sort ur vector on the basis of ending point .(not on the basis of radius
).
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.