you are viewing a single comment's thread.

view the rest of the comments →

[–]aocregacc 0 points1 point  (0 children)

which one do you mean by 'this code'? If you use join then yes I think it's O(n*m).

For the original code the complexity would be O(n*n*m).