the answer is o(n) how is it o(n^2)
How the answer is o(n^2)
each time you pass a vector it has to be copied which is O(N) proces so the time complexity increases to O(N^2)
the answer is o(n) how is it o(n^2)
each time you pass a vector it has to be copied which is O(N) proces so the time complexity increases to O(N^2)