how to solve this problem I can’t understant
Hostel visites problem
hi @vivekpatel are you having trouble understanding the question or do you need a hint? If you need a hint there is a hint video given in the course you can refer that.
hi there is no hint for this problem in the course
I am not able to understand this question
interview preparation with c++
hi @vivekpatel you are giving a number of coordinates, through which you have to find their respective distance from the origin from the given forumla, ie x*x + y*y Now, after getting some distances, you might get a query asking for the Kth nearest hostel, the value of k will be given in the starting and will not change throughout the question. So everytime this query is asked, you have to print the distance of the kth nearest hostel.
Hint: You can do so efficiently using a heap.
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.