...

/

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 connects n pipes of different lengths, into one pipe. You can assume that the cost to connect two pipes is ...