8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3844e9f commit 3baf88cCopy full SHA for 3baf88c
src/algorithms/sets/power-set/README.md
@@ -47,6 +47,17 @@ what we need: it shows by its bits (`0` or `1`) whether to include related
47
element from the set or not. For example, for the set `{1, 2, 3}` the binary
48
number of `0b010` would mean that we need to include only `2` to the current set.
49
50
+| | `abc` | Subset |
51
+| :---: | :---: | :-----------: |
52
+| `0` | `000` | `{}` |
53
+| `1` | `001` | `{c}` |
54
+| `2` | `010` | `{b}` |
55
+| `3` | `011` | `{c, b}` |
56
+| `4` | `100` | `{a}` |
57
+| `5` | `101` | `{a, c}` |
58
+| `6` | `110` | `{a, b}` |
59
+| `7` | `111` | `{a, b, c}` |
60
+
61
> See [bwPowerSet.js](./bwPowerSet.js) file for bitwise solution.
62
63
### Backtracking Solution
0 commit comments