Question DSA-GRDY-0012
MediumWhat is the time complexity of Kruskal's algorithm with union–find?
- A.
O(E × V)
- B.
O(V²)
- 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
Greedy question
What is the time complexity of Kruskal's algorithm with union–find?
O(E × V)
O(V²)
Sign up free to see the answer and a step-by-step explanation.
O(V + E)
O(E log E)