Maximum K-Star Sum
Asked at MathWorks · Coding Questions · Difficulty: Medium · Last asked Sep 13, 2025
Given an undirected graph with a value on each node, choose a star subgraph with at most `k` arms that maximizes the sum of the center plus selected neighbor values.
Loading the problem…