One of the test case is failing . Please go through my code.
Kth nearest hostel - One test case is failing
Hi Ayush
I am working on your one test case will come with the mistake in some time.
Have you found the solution?
Hi Ayush,
First of all sorry for the late reply.
Your logic was absolutely correct.Just use long instead of int while calculating dist in the add function.
DONOT type cast externally.Take x and y long too.
Thankyou.
Yeah it works now. Thanks a lot🙂
@ajain4871
If you are completely satisfied with your doubt then please mark it resolved else you can ask your doubt anytime on this post.
Thankyou