Easy Problemsoptimizationlinear

Max A's using Special Keyboard

A keyboard has only four keys: type 'A', select all, copy, and paste. Given a fixed budget of n total key presses, find the maximum number of 'A' characters that can appear on screen.

Do this lesson first: house robber

The full breakdown and animated table for this problem are still being written. In the meantime, run the four questions on it yourself — that is the whole exercise.