650 2 Keys Keyboard
650. 2 Keys Keyboard
1. Question
Input: 3
Output: 3
Explanation:
Intitally, we have one character 'A'.
In step 1, we use Copy All operation.
In step 2, we use Paste operation to get 'AA'.
In step 3, we use Paste operation to get 'AAA'.2. Implementation
3. Time & Space Complexity
Last updated