Find Minimum Cost to Remove Array Elements at DE Shaw
Medium21.3% acceptance
This problem has 87.5% frequency at DE Shaw.
Problem Description
You are given an integer array `nums`. Your task is to remove **all elements** from the array by performing one of the following operations at each step until `nums` is empty: * Choose any two elements from the first three elements of `nums` and remove them. The cost of this operation is the **ma...
Read full problem and hintsTopics
Also asked at 2 companies
More DE Shaw Questions
Binary Tree CamerasHardMaximum Points After Collecting Coins From All NodesHardRelative Sort ArrayEasyMaximum Strength of K Disjoint SubarraysHardRemoving Minimum Number of Magic BeansMedium
View all DE Shaw questions