Find all subsets of a given set OR Find power set of a given set

What is the complexity of this code?

Shams - Mar 4, 2012

What is the complexity of this code?

Sorry for the late response. The time complexity of method 2 will be O(n.2^n). I know it may not help now as I am over an year late, but still replying.


See also