3 ms·
They might be equivalent (perhaps apart from other issues pointed out in other comments), but both implementations are still either 1) incorrect if UTF-8-strin
by molf 6y ago
They might be equivalent (perhaps apart from other issues pointed out in other comments), but both implementations are still either
1) incorrect if UTF-8-strings are supposed to be valid input, or
2) very inefficient if only ASCII-strings are supposed to be valid input.