filmov
tv
Write program to find Power set of given a set in Scala.
Показать описание
Find the power set of a given set
Example: -
a. Set(a, b) === power set : {}, a, b, {a, b}
b. Set(a, b, c) === power set : {}, a, b, c, {a, b}, {b, c}, {c, a} and {a, c, b
Example: -
a. Set(a, b) === power set : {}, a, b, {a, b}
b. Set(a, b, c) === power set : {}, a, b, c, {a, b}, {b, c}, {c, a} and {a, c, b