You are viewing a single comment's thread. Return to all comments →
Hi @blowkj, sorry can't find your solution.
Common source of long execution is the complexity of + operator (or append method) for strings. It's of Appending two strings, one of length N, other of M, is of complexity O(N+M). Here it's repeatitive addition, so it can be of quadratic complexity.