170.Copy, Paste, Type
★★★puzzlesJane Street
You start with an empty document. In one second you can type a single letter, copy the entire current document to the clipboard, or paste the clipboard once. What is the fewest seconds needed to reach at least 200 letters?
Sign in to submit an answer and track it toward your stats.
Sign inHint
A copy followed by k pastes multiplies the length by k+1 at a cost of k+1 seconds. So the whole task is about choosing multipliers whose product beats 200 for the least total cost.
Want timed drills, mental math, and a market-making game too? Try the full practice suite →