Course contentsShow
Computer Science
Lesson 899 of 2,87221. Greedy AlgorithmsPro lesson

Connect N Ropes with Minimum Cost

Minimize cost of connecting ropes by always connecting the two shortest ropes first using a min-heap.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.