3 ms·
Be aware that this isn't an equivalent of the C code. Replacing pointer arithmetic with string copy increases big O complexity of the algorithm. An equivalent
by mixedbit 13y ago
Be aware that this isn't an equivalent of the C code. Replacing pointer arithmetic with string copy increases big O complexity of the algorithm.
An equivalent would need to pass indexes to sub functions to avoid additional copies.