Add 57 new questions and exercises
This commit is contained in:
8
exercises/python/compress_string.md
Normal file
8
exercises/python/compress_string.md
Normal file
@ -0,0 +1,8 @@
|
||||
## Compress String
|
||||
|
||||
1. Write a function that gets a string and compresses it
|
||||
- 'aaaabbccc' -> 'a4b2c3'
|
||||
- 'abbbc' -> 'a1b3c1'
|
||||
2. Write a function that decompresses a given string
|
||||
- 'a4b2c3' -> 'aaaabbccc'
|
||||
- 'a1b3c1' -> 'abbbc'
|
Reference in New Issue
Block a user