Re:Why I often implement things from scratch (2006)
by ulucs on Sunday March 08, 2020 @01:30PM
(#22519258)
That’s just wrong. JS uses ropes for the string implementation, so even the inefficient left padding is O(n).
[ Parent
| on HN ]
Re:Why I often implement things from scratch (2006)
by throwsprtsdy on Sunday March 08, 2020 @03:38PM
(#22520050)
You're right. I'd correct my original post if I could. I stand by my point but I chose a terrible example.