Minimum Cost to Connect Points
Medium
Minimum Spanning Tree
Points on a plane are connected by edges whose cost is the Manhattan distance. Print the minimum total cost so that all points are connected.
Constraints
1 <= n <= 1000 |x|, |y| <= 10^6
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.