From e1239d8902eac8c895a7814ce8e4af091a7be094 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Sun, 12 Jun 2016 23:06:12 -0400 Subject: [PATCH 1/2] Update arrays_strings constraints --- .../compress/compress_challenge.ipynb | 4 ++-- .../compress/compress_solution.ipynb | 4 ++-- .../better_compress_challenge.ipynb | 8 +++++--- .../better_compress_solution.ipynb | 8 +++++--- .../reverse_string_challenge.ipynb | 6 +++--- .../reverse_string_solution.ipynb | 6 +++--- .../rotation/rotation_challenge.ipynb | 18 ++++++++++-------- .../rotation/rotation_solution.ipynb | 10 ++++++---- 8 files changed, 36 insertions(+), 28 deletions(-) diff --git a/arrays_strings/compress/compress_challenge.ipynb b/arrays_strings/compress/compress_challenge.ipynb index 353cb2c..f04ec41 100644 --- a/arrays_strings/compress/compress_challenge.ipynb +++ b/arrays_strings/compress/compress_challenge.ipynb @@ -39,7 +39,7 @@ " * Note: Unicode strings could require special handling depending on your language\n", "* Is this case sensitive?\n", " * Yes\n", - "* Can you use additional data structures? \n", + "* Can we use additional data structures? \n", " * Yes\n", "* Can we assume this fits in memory?\n", " * Yes" @@ -159,7 +159,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.4.3" + "version": "3.5.0" } }, "nbformat": 4, diff --git a/arrays_strings/compress/compress_solution.ipynb b/arrays_strings/compress/compress_solution.ipynb index 2313e4b..323879d 100644 --- a/arrays_strings/compress/compress_solution.ipynb +++ b/arrays_strings/compress/compress_solution.ipynb @@ -38,7 +38,7 @@ " * Note: Unicode strings could require special handling depending on your language\n", "* Is this case sensitive?\n", " * Yes\n", - "* Can you use additional data structures? \n", + "* Can we use additional data structures? \n", " * Yes\n", "* Can we assume this fits in memory?\n", " * Yes" @@ -196,7 +196,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.4.3" + "version": "3.5.0" } }, "nbformat": 4, diff --git a/arrays_strings/compress_alt/better_compress_challenge.ipynb b/arrays_strings/compress_alt/better_compress_challenge.ipynb index cc170f7..f7e8c18 100644 --- a/arrays_strings/compress_alt/better_compress_challenge.ipynb +++ b/arrays_strings/compress_alt/better_compress_challenge.ipynb @@ -37,9 +37,11 @@ "* Can we assume the string is ASCII?\n", " * Yes\n", " * Note: Unicode strings could require special handling depending on your language\n", - "* Can you use additional data structures? \n", - " * Yes\n", "* Is this case sensitive?\n", + " * Yes\n", + "* Can we use additional data structures? \n", + " * Yes\n", + "* Can we assume this fits in memory?\n", " * Yes" ] }, @@ -157,7 +159,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.4.3" + "version": "3.5.0" } }, "nbformat": 4, diff --git a/arrays_strings/compress_alt/better_compress_solution.ipynb b/arrays_strings/compress_alt/better_compress_solution.ipynb index d5b472f..8efd9a7 100644 --- a/arrays_strings/compress_alt/better_compress_solution.ipynb +++ b/arrays_strings/compress_alt/better_compress_solution.ipynb @@ -36,9 +36,11 @@ "* Can we assume the string is ASCII?\n", " * Yes\n", " * Note: Unicode strings could require special handling depending on your language\n", - "* Can you use additional data structures? \n", - " * Yes\n", "* Is this case sensitive?\n", + " * Yes\n", + "* Can we use additional data structures? \n", + " * Yes\n", + "* Can we assume this fits in memory?\n", " * Yes" ] }, @@ -245,7 +247,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.4.3" + "version": "3.5.0" } }, "nbformat": 4, diff --git a/arrays_strings/reverse_string/reverse_string_challenge.ipynb b/arrays_strings/reverse_string/reverse_string_challenge.ipynb index a647021..f63bdd9 100644 --- a/arrays_strings/reverse_string/reverse_string_challenge.ipynb +++ b/arrays_strings/reverse_string/reverse_string_challenge.ipynb @@ -34,12 +34,12 @@ "source": [ "## Constraints\n", "\n", - "* Can I assume the string is ASCII?\n", + "* Can we assume the string is ASCII?\n", " * Yes\n", " * Note: Unicode strings could require special handling depending on your language\n", "* Since we need to do this in-place, it seems we cannot use the slice operator or the reversed function?\n", " * Correct\n", - "* Since Python string are immutable, can I use a list of characters instead?\n", + "* Since Python string are immutable, can we use a list of characters instead?\n", " * Yes" ] }, @@ -164,7 +164,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.4.3" + "version": "3.5.0" } }, "nbformat": 4, diff --git a/arrays_strings/reverse_string/reverse_string_solution.ipynb b/arrays_strings/reverse_string/reverse_string_solution.ipynb index f8e13c0..110ae48 100644 --- a/arrays_strings/reverse_string/reverse_string_solution.ipynb +++ b/arrays_strings/reverse_string/reverse_string_solution.ipynb @@ -36,12 +36,12 @@ "source": [ "## Constraints\n", "\n", - "* Can I assume the string is ASCII?\n", + "* Can we assume the string is ASCII?\n", " * Yes\n", " * Note: Unicode strings could require special handling depending on your language\n", "* Since we need to do this in-place, it seems we cannot use the slice operator or the reversed function?\n", " * Correct\n", - "* Since Python string are immutable, can I use a list of characters instead?\n", + "* Since Python string are immutable, can we use a list of characters instead?\n", " * Yes" ] }, @@ -303,7 +303,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.4.3" + "version": "3.5.0" } }, "nbformat": 4, diff --git a/arrays_strings/rotation/rotation_challenge.ipynb b/arrays_strings/rotation/rotation_challenge.ipynb index 3599298..4273410 100644 --- a/arrays_strings/rotation/rotation_challenge.ipynb +++ b/arrays_strings/rotation/rotation_challenge.ipynb @@ -34,12 +34,14 @@ "source": [ "## Constraints\n", "\n", - "* Can you assume the string is ASCII?\n", + "* Can we assume the string is ASCII?\n", " * Yes\n", " * Note: Unicode strings could require special handling depending on your language\n", - "* Can you use additional data structures? \n", - " * Yes\n", "* Is this case sensitive?\n", + " * Yes\n", + "* Can we use additional data structures? \n", + " * Yes\n", + "* Can we assume this fits in memory?\n", " * Yes" ] }, @@ -151,21 +153,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.10" + "pygments_lexer": "ipython3", + "version": "3.5.0" } }, "nbformat": 4, diff --git a/arrays_strings/rotation/rotation_solution.ipynb b/arrays_strings/rotation/rotation_solution.ipynb index f354e4f..b37a530 100644 --- a/arrays_strings/rotation/rotation_solution.ipynb +++ b/arrays_strings/rotation/rotation_solution.ipynb @@ -34,12 +34,14 @@ "source": [ "## Constraints\n", "\n", - "* Can you assume the string is ASCII?\n", + "* Can we assume the string is ASCII?\n", " * Yes\n", " * Note: Unicode strings could require special handling depending on your language\n", - "* Can you use additional data structures? \n", - " * Yes\n", "* Is this case sensitive?\n", + " * Yes\n", + "* Can we use additional data structures? \n", + " * Yes\n", + "* Can we assume this fits in memory?\n", " * Yes" ] }, @@ -185,7 +187,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.4.3" + "version": "3.5.0" } }, "nbformat": 4, From 9a7958e5b48889e0d73ef6d887f7a2cf655daf29 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Sun, 12 Jun 2016 23:10:28 -0400 Subject: [PATCH 2/2] Update linked_lists constraints --- .../add_reverse/add_reverse_challenge.ipynb | 12 ++++++------ .../add_reverse/add_reverse_solution.ipynb | 4 ++-- .../partition/partition_challenge.ipynb | 18 ++++++++++-------- .../partition/partition_solution.ipynb | 18 ++++++++++-------- 4 files changed, 28 insertions(+), 24 deletions(-) diff --git a/linked_lists/add_reverse/add_reverse_challenge.ipynb b/linked_lists/add_reverse/add_reverse_challenge.ipynb index 5c9a8f0..7e9c74c 100644 --- a/linked_lists/add_reverse/add_reverse_challenge.ipynb +++ b/linked_lists/add_reverse/add_reverse_challenge.ipynb @@ -34,7 +34,7 @@ "source": [ "## Constraints\n", "\n", - "* Do you expect the return to be in reverse order too?\n", + "* Do we expect the return to be in reverse order too?\n", " * Yes\n", "* What if one of the inputs is None?\n", " * Return None for an invalid operation\n", @@ -190,21 +190,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.10" + "pygments_lexer": "ipython3", + "version": "3.5.0" } }, "nbformat": 4, diff --git a/linked_lists/add_reverse/add_reverse_solution.ipynb b/linked_lists/add_reverse/add_reverse_solution.ipynb index 1d47753..e6a3502 100644 --- a/linked_lists/add_reverse/add_reverse_solution.ipynb +++ b/linked_lists/add_reverse/add_reverse_solution.ipynb @@ -33,7 +33,7 @@ "source": [ "## Constraints\n", "\n", - "* Do you expect the return to be in reverse order too?\n", + "* Do we expect the return to be in reverse order too?\n", " * Yes\n", "* What if one of the inputs is None?\n", " * Return None for an invalid operation\n", @@ -256,7 +256,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.4.3" + "version": "3.5.0" } }, "nbformat": 4, diff --git a/linked_lists/partition/partition_challenge.ipynb b/linked_lists/partition/partition_challenge.ipynb index eb9cd72..336d211 100644 --- a/linked_lists/partition/partition_challenge.ipynb +++ b/linked_lists/partition/partition_challenge.ipynb @@ -34,13 +34,15 @@ "source": [ "## Constraints\n", "\n", - "* Can we create additional data structures?\n", - " * Yes\n", - "* Do you expect the function to return a new list?\n", + "* Do we expect the function to return a new list?\n", " * Yes\n", "* Can we assume the input x is valid?\n", " * Yes\n", "* Can we assume we already have a linked list class that can be used for this problem?\n", + " * Yes\n", + "* Can we create additional data structures?\n", + " * Yes\n", + "* Can we assume this fits in memory?\n", " * Yes" ] }, @@ -190,21 +192,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.10" + "pygments_lexer": "ipython3", + "version": "3.5.0" } }, "nbformat": 4, diff --git a/linked_lists/partition/partition_solution.ipynb b/linked_lists/partition/partition_solution.ipynb index c7b1555..399c0a6 100644 --- a/linked_lists/partition/partition_solution.ipynb +++ b/linked_lists/partition/partition_solution.ipynb @@ -33,13 +33,15 @@ "source": [ "## Constraints\n", "\n", - "* Can we create additional data structures?\n", - " * Yes\n", - "* Do you expect the function to return a new list?\n", + "* Do we expect the function to return a new list?\n", " * Yes\n", "* Can we assume the input x is valid?\n", " * Yes\n", "* Can we assume we already have a linked list class that can be used for this problem?\n", + " * Yes\n", + "* Can we create additional data structures?\n", + " * Yes\n", + "* Can we assume this fits in memory?\n", " * Yes" ] }, @@ -231,21 +233,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.10" + "pygments_lexer": "ipython3", + "version": "3.5.0" } }, "nbformat": 4,