© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Rattanak Chea
SDE
In the code, is it assumed that there is always a path to person_to_find? The while loop could potentially run infinitely if not found?
Benny Elgazar
Data-Engineer @ gett
Your are right, it was meant to be while not lookup_queue.empty().
while not lookup_queue.empty()
Thanks.