donnemartin / donnemartin/interactive-coding-challenges
string compression solutions don't match description
Open
needs-review
- Dominant language
- Python
- Stars
- 31.8k
- Forks
- 4.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hello
In the string compression challenge:
- you say `Only compress the string if it saves space.`
- but you have expected outputs like
```python
assert_equal(func('AAABCCDDDDE'), 'A3BC2D4E')
assert_equal(func('BAAACCDDDD'), 'BA3C2D4')
assert_equal(func('AAABAACCDDDD'), 'A3BA2C2D4')
```
The `C2` doesn't save space, right? Shouldn't it be just `CC` ?
Contributor guide
Assessment
This issue has not been assessed yet.