Why did the instructor not initialize the visited map to “false / 0” in bfs, just like he did in dfs ?
map values are by default 0 whether initialize them or not @Rhinorox