Find the optimum sequence of keyboard hits to produce the most repeated characters -
you provided 4 possible operations can done on editor (each operation requires one keyboard hit).
- a
- ctrl+a
- ctrl+c
- ctrl+v
now can hit keyboard n times , need find maximum number of a's can printed. print sequence of keyboard hits.
googled answer:
Comments
Post a Comment