Practice
Learn
← Quit
0 / 0 correct
Data Structures
Hard
1 of 10
What is a deque-based '0-1 BFS' used for?
A
Sorting binary arrays
B
Topological sorting
C
Shortest paths in graphs whose edge weights are only 0 or 1, in O(V + E)
D
Finding cycles