What's the time complexity of finding all subsets?

here the brute force approch time complexity must be exponential not O(N^2) as told by instructor. Please let me know if I am wrong.

yup @Akshay123

it will be 2^no of elements in array

thank u for timely responding

1 Like