Skip to content

Comment on Turn O(n^2) reverse into O(n)

Comments

I guess nobody ever got upvoted for using StringBuffer/StringBuilder instead of String concatenation in Java.

In JDK 7 '+' concatenation actually uses StringBuilder under the hood, so probably nobody cares.

I can't tell if you're being facetious.

Indeed I was.

It's a good safety barrier against hype things.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.