26 ms·
For those unfamiliar with pointer arithmetic I wrote a python port here. https://gist.github.com/siddharthsarda/5538928 https://gist.github.com/siddharthsarda/5
by sid6376 13y ago
For those unfamiliar with pointer arithmetic I wrote a python port here. https://gist.github.com/siddharthsarda/5538928 https://gist.github.com/siddharthsarda/5538928
- mixedbit 13y agoBe 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.