why t.c. is O(n^2). As if i is less than v.size(), it would take (n-i) operations for equal to if condition to satisfy.
How is the option correct?
Please share picture and label the issue
why t.c. is O(n^2). As if i is less than v.size(), it would take (n-i) operations for equal to if condition to satisfy.
Please share picture and label the issue