← Amazon questions

Maximum number of K's with specific keyboard operations

Filed under Amazon

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.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.