4 ms·
If there are 3 As in the first string and 4 in the second, it fails. A boolean value can't count to 3.
by tedunangst 16y ago
If there are 3 As in the first string and 4 in the second, it fails. A boolean value can't count to 3.
- jamesaguilar 16y agoMaybe in a different problem it would fail, but this is merely a presence test, so booleans are fine. At any rate, an array of int32s instead of bools would defeat the objection for reasonably long strings.
- tedunangst 16y agoThis is that different problem. The author's description is muddy, but you do need the counts.