Search⌘ K
AI Features

Minimum Cost to Connect Sticks

Minimum Cost to Connect Sticks asks you to combine an array of positive-length sticks into one, paying each pair's total length, and return the lowest possible total cost.

Statement

You are given a set of sticks with positive integer lengths represented as an array, sticks, where ...