33 ms·
or `"".join([chr(ch) for ch in s])`. It's only 2-3x slower than the array solution, but a lot more rubust. The main issue IIUC is the original suggestion was O
by hayd 10y ago
or `"".join([chr(ch) for ch in s])`. It's only 2-3x slower than the array solution, but a lot more rubust.
The main issue IIUC is the original suggestion was O(N^2).