注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
- You are given an array of integers locations, where locations[i] represents the location of the i-th item. At each step, you can pick two items if they come from different locations (i.e., they have different values in locatelected subarray after performing the optimal operation. Return the maximum possible sum of any subarray after applying one of the operations.
求加米 |