16 Technical Google Interview Questions for Software Engineers

Page 3 of 17

15. Power Set

Can you write code in Java or C++ to find the power set of a given set? For example if S={a,b} the power set is P={{},{a},{b},{a,b}} ( you can also choose any of your favorite programming languages)

Page 3 of 17