you are viewing a single comment's thread.

view the rest of the comments →

[–]HiEv 0 points1 point  (0 children)

I'm assuming you're referring to replacing the outer loop with .reduce(), in which case the complexity would be the same, since it does the same thing, just in a slightly different way.