Vector stl quiz

question 3
why it is not O(n)

this is because vector is not pass by reference
so vector will copy every time which also take O(n) time

if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like :heart:: and don’t forgot to mark doubt as resolved :grinning: