Question DSA-GRAPH-0051
MediumWhat is the time complexity of Dijkstra's algorithm with a binary heap?
- A.
O((V + E) log V)
- B.
O(V²) always
- C.
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
Graphs question
What is the time complexity of Dijkstra's algorithm with a binary heap?
O((V + E) log V)
O(V²) always
Sign up free to see the answer and a step-by-step explanation.
O(E)
O(VE)