Fade to Solo
Advanced Graphs

Min Cost to Connect Points (MST)

NO NETMleetcode ↗

Problem

You have a set of points on a 2D grid. Connect all of them using edges whose cost is the Manhattan distance between their endpoints, so that every point is reachable from every other, at the minimum total cost.

NO NET00:00
no net — stays locked