Added notebook solving the following: Compress a string such that aabbb becomes a2b3.

This commit is contained in:
Donne Martin
2015-05-04 05:54:50 -04:00
parent c032b296bf
commit 653e4b3bbd
3 changed files with 264 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ Continually updated IPython Notebooks containing algorithms and data structures.
* [Reverse characters in a string](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/reverse_string.ipynb)
* [Check if a string is a permutation of another](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/permutation.ipynb)
* [Encode spaces in a string in-place](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/replace_char.ipynb)
* [Compress a string](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/compress.ipynb)
## License