MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pgh65c/oh_gosh/hbfmq46/?context=3
r/badcode • u/orhnofficial • Sep 02 '21
53 comments sorted by
View all comments
Show parent comment
3
Isn't it O(n2) because of the way the string is built? I'm not very familiar with how JS handles these things but even in python you absolutely don't want to do that
View all comments
Show parent comment
3
u/O_X_E_Y Sep 03 '21
Isn't it O(n2) because of the way the string is built? I'm not very familiar with how JS handles these things but even in python you absolutely don't want to do that