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