Skip to content

run-length-encoding: make description consistent with test cases #538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion exercises/run-length-encoding/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ the compressed data, which makes it a lossless data compression.
"AABCCCDEEEE" -> "2AB3CD4E" -> "AABCCCDEEEE"
```

If the string contains any whitespace, it should be passed through unchanged:

```
"aabc dddef" -> "2abc 3def"
```

For simplicity, you can assume that the unencoded string will only contain
the letters A through Z.
the letters A through Z (either lower or uppercase) and whitespace.