Generating Subsets
I really struggled with this problem. I remember for the Citadel online assessment, this was part of the problem and I really had no idea how to do it.
Method 1
Use recursion
Method 2
Use bit representation of integers. ?
I really struggled with this problem. I remember for the Citadel online assessment, this was part of the problem and I really had no idea how to do it.
Use recursion
Use bit representation of integers. ?