did understand how time complexity is calculated in q3
Stl challenge quiz 2 quest 3
question is there in quiz 2 of stl challenge
i have questions but they are not in order. thats why asking it from u
i am not getting from where to attach pic…question is to calculate time complexity of a fun named calSum
Its N^2 because vector is passed by value
So for each recursive call its copied to another vector
So for N calls vector of size N is copied
=> N^2