>RunTimeFix
BookStudyPracticeInterviewsYouTubeCoursesAbout
Log inGet Started
Practice/Minimum Spanning Tree
2 subtopics · 5 problems

Minimum Spanning Tree

Kruskal's and Prim's algorithms for minimum spanning trees.

01Kruskal's Algorithm

Sort edges by weight, use DSU to greedily build the MST.

1 medium2 hard
ProblemDifficultyLink
472DDesign Tutorial: Inverse the ProblemmediumSolve
1513DGCD and MSThardSolve
609EMinimum spanning tree for each edgehardSolve

02Prim's Algorithm

Grow MST from a vertex using a priority queue.

2 hard
ProblemDifficultyLink
545EPaths and TreeshardSolve
1108FMST UnificationhardSolve
All TopicsStudy the Theory
Was this helpful?
>RunTimeFix

Practical programming education. Books, videos, courses, and hands-on learning for competitive programming, DSA, and software engineering.

RunTimeFix

  • About
  • YouTube
  • Book
  • Study Library
  • Courses

Learn

  • Competitive Programming
  • DSA
  • Development
  • Databases

Legal

  • Privacy
  • Terms
  • Refund Policy

RunTimeFix — debug → solve → run

© 2026 RunTimeFix. All rights reserved.