Y
Hacker News
new
|
ask
|
show
|
jobs
by
arcastroe
369 days ago
The line `str = ch + str` is itself a linear-time operation, with time proportional to the length of the new string.
That linear-time operation is then additionally repeated `len` times