You are viewing a single comment's thread. Return to all comments →
my test cases are ran out of time.
If you use java and use String, switch to StringBuilder it will solve your problem.
Don't know about another languages, sorry.
This is because String is immutable and every concatination will create new object.