...

/

Challenge 2: Connecting n pipes with minimum cost

Challenge 2: Connecting n pipes with minimum cost

Given n pipes, find the minimum cost of connecting them.

Problem Statement

Implement a function that, given n pipes of different lengths, connects these pipes into one pipe. The cost to connect two pipes is equal to ...