Question DSA-QUE-0059
MediumWhat is the space complexity of BFS on a graph with V vertices?
- A.
O(1)
- B.
O(V)
- C.
O(log V)
- D.
O(E²)
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Queues and Deques question
What is the space complexity of BFS on a graph with V vertices?
O(1)
O(V)
O(log V)
O(E²)
Sign up free to see the answer and a step-by-step explanation.