powerSet - recursion
powerSet 문제 : 주어진 문자열에 대하여 멱집합의 배열을 출력하여라. (power set이란, 빈 set를 포함한 모든 가능한 subset을 말한다.) e.g : powerSet("abc") -> [ '' , 'a', 'b', 'c', 'ab', 'ac', 'bc', 'abc' ] Note: * 1. All characters in a subset should be sorted. * 2. Sets of the same characters are considered duplicates regardless of order and count only once, e.g. 'ab' and 'b..
Programming/Algorithm
2019. 6. 20. 20:44