Comment on Turn O(n^2) reverse into O(n)parentComments−alok-g12yEach time strings[i] is added to acc, it may require reallocating entire acc to new memory location with more memory for the concatenated string.
Comments
Each time strings[i] is added to acc, it may require reallocating entire acc to new memory location with more memory for the concatenated string.