From 53d0ce9142a8e25cd96a491b17e96085c2e7c4cb Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Tue, 9 Feb 2016 04:33:09 -0500 Subject: [PATCH 1/3] Update author to hashhar's challenge. --- .../better_compress_challenge.ipynb | 2 +- .../better_compress_solution.ipynb | 19 +++++-------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/arrays_strings/better_compress/better_compress_challenge.ipynb b/arrays_strings/better_compress/better_compress_challenge.ipynb index b1f3afe..cc170f7 100644 --- a/arrays_strings/better_compress/better_compress_challenge.ipynb +++ b/arrays_strings/better_compress/better_compress_challenge.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This notebook was prepared by [Donne Martin](http://donnemartin.com). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges)." + "This notebook was prepared by [hashhar](https://github.com/hashhar). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges)." ] }, { diff --git a/arrays_strings/better_compress/better_compress_solution.ipynb b/arrays_strings/better_compress/better_compress_solution.ipynb index 2e9a0c0..841f13c 100644 --- a/arrays_strings/better_compress/better_compress_solution.ipynb +++ b/arrays_strings/better_compress/better_compress_solution.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This notebook was prepared by [Donne Martin](http://donnemartin.com). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges)." + "This notebook was prepared by [hashhar](https://github.com/hashhar). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges)." ] }, { @@ -101,7 +101,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 1, "metadata": { "collapsed": false }, @@ -171,7 +171,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 2, "metadata": { "collapsed": false }, @@ -211,7 +211,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 3, "metadata": { "collapsed": false }, @@ -227,15 +227,6 @@ "source": [ "%run -i test_compress.py" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] } ], "metadata": { @@ -254,7 +245,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.0" + "version": "3.4.3" } }, "nbformat": 4, From d9b5c57d5e775c569d715c094b7434c131de3a1e Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Tue, 9 Feb 2016 04:33:48 -0500 Subject: [PATCH 2/3] Fix indentation. --- arrays_strings/better_compress/better_compress_solution.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arrays_strings/better_compress/better_compress_solution.ipynb b/arrays_strings/better_compress/better_compress_solution.ipynb index 841f13c..d5b472f 100644 --- a/arrays_strings/better_compress/better_compress_solution.ipynb +++ b/arrays_strings/better_compress/better_compress_solution.ipynb @@ -127,8 +127,8 @@ "\n", " # Create compressed_string\n", " # New objective:\n", - " # Single characters are to be left as is\n", - " # Double characters are to be left as are\n", + " # Single characters are to be left as is\n", + " # Double characters are to be left as are\n", " compressed_string = list()\n", " count = 0\n", " last_char = string[0]\n", From 668864aa62a2d597bfa29ccb41ab686ed8d97a2a Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Tue, 9 Feb 2016 04:35:09 -0500 Subject: [PATCH 3/3] Rename alt compress solution. --- arrays_strings/{better_compress => compress_alt}/__init__.py | 0 .../better_compress_challenge.ipynb | 0 .../better_compress_solution.ipynb | 0 arrays_strings/{better_compress => compress_alt}/test_compress.py | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename arrays_strings/{better_compress => compress_alt}/__init__.py (100%) rename arrays_strings/{better_compress => compress_alt}/better_compress_challenge.ipynb (100%) rename arrays_strings/{better_compress => compress_alt}/better_compress_solution.ipynb (100%) rename arrays_strings/{better_compress => compress_alt}/test_compress.py (100%) diff --git a/arrays_strings/better_compress/__init__.py b/arrays_strings/compress_alt/__init__.py similarity index 100% rename from arrays_strings/better_compress/__init__.py rename to arrays_strings/compress_alt/__init__.py diff --git a/arrays_strings/better_compress/better_compress_challenge.ipynb b/arrays_strings/compress_alt/better_compress_challenge.ipynb similarity index 100% rename from arrays_strings/better_compress/better_compress_challenge.ipynb rename to arrays_strings/compress_alt/better_compress_challenge.ipynb diff --git a/arrays_strings/better_compress/better_compress_solution.ipynb b/arrays_strings/compress_alt/better_compress_solution.ipynb similarity index 100% rename from arrays_strings/better_compress/better_compress_solution.ipynb rename to arrays_strings/compress_alt/better_compress_solution.ipynb diff --git a/arrays_strings/better_compress/test_compress.py b/arrays_strings/compress_alt/test_compress.py similarity index 100% rename from arrays_strings/better_compress/test_compress.py rename to arrays_strings/compress_alt/test_compress.py