Tap here to switch tabs
Problem
Submissions

Problem: Minimum Cost to Merge Sorted Lists

med
30 min
Try to solve the Minimum Cost to Merge Sorted Lists problem.

Statement

You are given an array of 2extD2 ext{D} integers lists, where each inner array lists[i] is sorted in non decreasing order.

In one operation, you can choose any two lists aa and bb, and merge them into a single sorted list. The cost of this operation is defined as:

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Minimum Cost to Merge Sorted Lists

med
30 min
Try to solve the Minimum Cost to Merge Sorted Lists problem.

Statement

You are given an array of 2extD2 ext{D} integers lists, where each inner array lists[i] is sorted in non decreasing order.

In one operation, you can choose any two lists aa and bb, and merge them into a single sorted list. The cost of this operation is defined as: