leetcode weekly contest 61 ( 740. Delete and Earn )

Given an array nums of integers, you can perform operations on the array. In each operation, you pick any nums[i] and delete it to earn nums[i] points. After, you must delete every element equal to n
相关文章
相关标签/搜索