myaw's blog

By myaw, history, 8 years ago, In English

This solution is O(n) right? is it because java i/o ?

submission

Tags tle
  • Vote: I like it
  • -10
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +8 Vote: I do not like it

String Concatenation in Java using the String class is O(N) per operation.

Use the StringBuilder class instead.