0651. 4 Keys Keyboard
Description
**Input:** n = 3
**Output:** 3
**Explanation:** We can at most get 3 A's on screen by pressing the following key sequence:
A, A, A**Input:** n = 7
**Output:** 9
**Explanation:** We can at most get 9 A's on screen by pressing following key sequence:
A, A, A, Ctrl A, Ctrl C, Ctrl V, Ctrl Vac
Last updated