Company: Cisco_23july
Difficulty: medium
Salesforce Channel Optimization In a Salesforce-powered organization, different departments are represented as connected undirected nodes in a network with a total of org_nodes nodes numbered from 1 to org_nodes . Each node corresponds to a department, and the communication channels between these departments are represented as edges that connect org_from[i] to org_to[i] with associated cost org_weight[i] . The organization needs to optimize its system by removing unnecessary communication channels between departments while maintaining full connectivity, i.e. each department must be able to reach every other department either directly or through a sequence of channels. After the optimization, exactly org_nodes - 1 channels may remain, and they must keep all departments connected — that is, the retained channels form a spanning tree of the organization. Your task is to determine the maximum possible sum of communication channel costs that can be removed. Note: All the communication chann