donnemartin / donnemartin/interactive-coding-challenges

string compression solutions don't match description

Open
#271 2 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.