6 ms·
I've commented about this before, but their supposedly optimized implementation is still garbage: https://news.ycombinator.com/item?id=24125312 https://news.yco
by ghj 5y ago
I've commented about this before, but their supposedly optimized implementation is still garbage:
https://news.ycombinator.com/item?id=24125312 https://news.ycombinator.com/item?id=24125312
There's no reason to build the repeats up by doubling since the string concatenation of two same string is still linear time.