You have a keyboard with four keys: 'K' (prints one 'K'), 'Ctrl-A' (Select All), 'Ctrl-C' (Copy), and 'Ctrl-V' (Paste). Given N keystrokes, find the maximum number of 'K's possible.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.