about | help | code help+videos | done | prefs |
Given a finite set, list all elements of its power set. powerset(["A", "B"]) → ["", "A", "B", "AB"] powerset(["A", "B", "C"]) → ["", "A", "B", "C", "AB", "AC", "BC", "ABC"] powerset(["A"]) → ["", "A"] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy