Leetcode 1423. Maximum Points You Can Obtain from Cards

Posted on Sun 26 June 2022 in Leetcode • Tagged with sliding-window, array

Question Link : https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards/

Difficulty: Medium

Question

There are several cards arranged in a row, and each card has an associated number of points. The points are given in the integer array cardPoints. In one step, you can take one card from the beginning or from the …


Continue reading