Macquarie Group interview question

Write a program such that when given an array it will output every subset. Given {1 2} {}{1}{2}{1 2}

Interview Answer

Anonymous

Nov 19, 2019

Although I didn’t complete in the time given the solution required recursion.