solulubeta
Sign in
Story Problems / Arrays, windows & two pointers
01.10 · Problem

Pick Cards From the Ends

Medium Fixed window on the complement Pro

This problem is part of solulu Pro

A game table has cards in a row, each with some points. In exactly k turns you take a card from either the leftmost or the rightmost end every turn. What is the maximum total of points you can collect?

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 10 of 94 · updated 2026-10-12