Skip to content

Commit 06c3f57

Browse files
authored
Merge pull request #538 from daveyarwood/make-rle-description-consistent-with-test-cases
run-length-encoding: make description consistent with test cases
2 parents 5472708 + e8142f6 commit 06c3f57

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

exercises/run-length-encoding/description.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@ the compressed data, which makes it a lossless data compression.
1414
"AABCCCDEEEE" -> "2AB3CD4E" -> "AABCCCDEEEE"
1515
```
1616

17+
If the string contains any whitespace, it should be passed through unchanged:
18+
19+
```
20+
"aabc dddef" -> "2abc 3def"
21+
```
22+
1723
For simplicity, you can assume that the unencoded string will only contain
18-
the letters A through Z.
24+
the letters A through Z (either lower or uppercase) and whitespace.

0 commit comments

Comments
 (0)