ByteDance interview question

Graph search problems with multiple data structures and BFS