CodeMosa
Master LeetCode Patterns
All Patterns
Collections
Sign In
Back
Minimum Spanning Tree
Question 1 of 12
8% Complete
Medium
Difference between Kruskal's and Prim's algorithms?
A
Kruskal: sort edges; Prim: grow tree using priority queue of edges from tree
B
Both sort nodes only
C
Both require Union-Find
D
Prim always faster than Kruskal