Skip to content

Commit bcae492

Browse files
committed
fix ww
1 parent e354dae commit bcae492

26 files changed

+114
-120
lines changed
0 Bytes
Binary file not shown.

generated-assets/.web_assets.pkl

0 Bytes
Binary file not shown.
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading

generated-assets/webwork/webwork-representations.xml

Lines changed: 108 additions & 111 deletions
Large diffs are not rendered by default.

source/sec_counting-non-disjoint.ptx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@
8282
<exercise label="pa-counting-non-disjoint-1">
8383
<webwork>
8484
<pg-code>
85-
Context()->strings->add(111 => {}, 110 => {}, 101 => {}, 100 => {},011 => {});
85+
Context()->strings->add(111 => {}, 110 => {}, 101 => {}, 100 => {},'011' => {}, '001' => {}, '010' => {}, '000' => {});
8686
$start1 = List(String(111), String(110), String(101), String(100));
87-
$weight2 = List(String(110), String(101));
88-
$either = List(String(111), String(110), String(101), String(100));
87+
$weight2 = List(String(110), String(101), String('011'));
88+
$either = List(String(111), String(110), String(101), String(100), String('011'));
8989
</pg-code>
9090

9191
<introduction>
@@ -107,10 +107,10 @@
107107
<task>
108108
<statement>
109109
<p>
110-
List all the 3-bit strings that have weight 2. One string has already been listed for you.
110+
List all the 3-bit strings that have weight 2.
111111
</p>
112112
<p>
113-
011, <var name="$weight2" width="40"/>
113+
<var name="$weight2" width="40"/>
114114
</p>
115115
</statement>
116116
</task>
@@ -120,10 +120,7 @@
120120
Now list all the 3-bit strings that start with 1 or have weight 2. But be lazy: Don't list them from scratch. Use your lists from the two tasks above.
121121
</p>
122122
<p>
123-
Again, one string has been listed for you.
124-
</p>
125-
<p>
126-
011, <var name="$either" width="50"/>
123+
<var name="$either" width="50"/>
127124
</p>
128125
</statement>
129126
</task>

0 commit comments

Comments
 (0)