3 ms·
That’s just wrong. JS uses ropes for the string implementation, so even the inefficient left padding is O(n).
by ulucs 7y ago
That’s just wrong. JS uses ropes for the string implementation, so even the inefficient left padding is O(n).
- throwsprtsdy 7y agoYou're right. I'd correct my original post if I could. I stand by my point but I chose a terrible example.