Search results
The cost of one cut is the length of the stick to be cut, the total cost is the sum of costs of all cuts. When you cut a stick, it will be split into two smaller sticks (i.e. the sum of their lengths is the length of the stick before the cut).
Can you solve this real interview question? Minimum Cost to Cut a Stick - Level up your coding skills and quickly land a job.
Login with LeetCode account or register ...