Pergunta de entrevista da empresa Booking.com

Find Nth nearest neighbours in a graph.

Resposta da entrevista

Sigiloso

2 de mar. de 2020

Do a BFS with tracking the depth. When it’s N - return whatever is in the queue. Haven’t checked, but should in that direction.

3