In the video, inside bfs function, we are maintaining map <
T,int> visited . it should be <T,bool > right? because we are assigning visited[src] = true which is a boolean value.
Please correct me!
In the video, inside bfs function, we are maintaining map <
T,int> visited . it should be <T,bool > right? because we are assigning visited[src] = true which is a boolean value.
Please correct me!