Hacker News new | ask | show | jobs
by _v7gu 2294 days ago
That’s just wrong. JS uses ropes for the string implementation, so even the inefficient left padding is O(n).
1 comments

You're right. I'd correct my original post if I could. I stand by my point but I chose a terrible example.