Home Puzzle optimization – Minimum keystrokes – Puzzling Stack Exchange

optimization – Minimum keystrokes – Puzzling Stack Exchange

0
optimization – Minimum keystrokes – Puzzling Stack Exchange

[ad_1]

This puzzle is created by me.


String 1:

  This is an example paragraph. It contains multiple sentences.
  In addition to multiple sentences,
  it contains multiple lines, as well as indentations.

String 2:

This is an example paragraph, but changed slightly. It contains multiple sentences.
In addition to multiple sentences,
it contains multiple lines, as well as minor changes, like having no indentations.
In addition to multiple sentences, it also contains a partially repeated sentence.

The puzzle:

Find the minimum number of keystrokes to turn String 1 into String 2.

Rules:

  • Your cursor starts at the very end String 1 (after all characters).
  • You may only use the keyboard and arrow keys, no mouse / trackpad.
  • The keyboard used should be a standard, U.S. QWERTY keyboard, with no custom keys.
  • You may use common keyboard shortcuts, but they count as multiple keystrokes (e.g. CTRL + BACKSPACE counts for 2 keystrokes).
  • A common keyboard shortcut is one that works by default in all major operating systems (so no custom keybindings).
  • You may not use keyboard shortcuts specific to the text editor or application; the solution should be generic and applicable to any text editor.
  • Your clipboard is empty, but may be used.
  • Typing a character counts for 1 keystroke, even if SHIFT is used. However, if SHIFT is used in a keyboard shortcut, it counts as multiple keystrokes.

[ad_2]