Challenge
I peeked at the better solutions. They turn the input string into bytes, iterate through the strictly-increasing collection of space indices, and do byte(?)-wise copying accordingly.
My question: is this low-level copying that much better than my high-level iterative approach? Or is there some finer optimization happening? (I think it really is simply better)
Challenge
I peeked at the better solutions. They turn the input string into bytes, iterate through the strictly-increasing collection of space indices, and do byte(?)-wise copying accordingly.
My question: is this low-level copying that much better than my high-level iterative approach? Or is there some finer optimization happening? (I think it really is simply better)