Domanda di colloquio di Macquarie Group

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

Risposta di colloquio

Anonimo

19 nov 2019

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