My Nearest Neighbour
CodeChefOpen on judge ↗
Popeye has got into the property business recently and has constructed a lot of new plots on his rectangular land. However any customers who arrive at his office to buy a new flat want to know about their nearest neightbors. Popeye seems to have hit a roadblock but this is where you, his programmer friend need come out to help him. Your task is to find out for any plot what would is the least dist
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start