K5kC | Code & More
Computer Science
Algorithms
Programming Languages
Database
System Design
Problems
Blind 75
Difficulty: Easy
Difficulty: Medium
Difficulty: Hard
Videos
Projects
Android
Data Science
Computer Vision
Simulations
Tools
UUID Generator
Code Formatter
Search
⌘K
Min Cost to Connect All Points
Copy title
Copy link
medium
Solve on LeetCode
Last edited: January 4, 2026
Related Tags
binary-search-tree
binary-tree
database
design
greedy
iterator
leetcode
minimum-spanning-tree
mst-minimum-spanning-tree
sorting
stack
string
tree
union-find
Please enable JavaScript to view the
comments powered by Disqus.