Question d’entretien chez Lyft

Tree path question, some graph BFS. Pretty simple stuff.