Search
⌘K

Leetcode 3324. Find the Sequence of Strings Appeared on the Screen

Given a target string and a keyboard with only two operations (append "a" or cyclically increment the last character), simulate the minimal-key-press sequence that produces target and return every intermediate screen string; for each target character you append an "a" then repeatedly increment the last character (wrapping z→a) until it matches the target.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.