Cards lie in a row with point values. Take exactly k cards, each from the left or right end. What is the best score?
Cards lie in a row with point values. Take exactly k cards, each from the left or right end. What is the best score?
Opens with the full question.