Hacker News new | ask | show | jobs
by mytummyhertz 4565 days ago
so does this mean .length() is also now O(n) ?
1 comments

Of course not: it would simply pass through to the underlying char[].length, which is a field.