Tweaked replace char challenge problem statement and contraints.

This commit is contained in:
Donne Martin 2015-07-05 09:27:11 -04:00
parent f824de0807
commit f7f9160ba4
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Problem: Given a string, replace all spaces with '%20', in-place\n", "## Problem: Given a string (a list of characters), replace all spaces with '%20', in-place\n",
"\n", "\n",
"* [Constraints](#Constraints)\n", "* [Constraints](#Constraints)\n",
"* [Test Cases](#Test-Cases)\n", "* [Test Cases](#Test-Cases)\n",

View File

@ -18,7 +18,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Problem: Given a string, replace in-place all spaces with '%20'\n", "## Problem: Given a string (a list of characters), replace in-place all spaces with '%20'\n",
"\n", "\n",
"* [Constraints](#Constraints)\n", "* [Constraints](#Constraints)\n",
"* [Test Cases](#Test-Cases)\n", "* [Test Cases](#Test-Cases)\n",
@ -42,7 +42,7 @@
" * Note: Unicode strings could require special handling depending on your language\n", " * Note: Unicode strings could require special handling depending on your language\n",
"* Is there enough space in the data structure for this operation?\n", "* Is there enough space in the data structure for this operation?\n",
" * Yes\n", " * Yes\n",
"* Since Python strings are immutable and we are asked to do this in-place, can I use a bytearray or a list instead?\n", "* Since Python strings are immutable and we are asked to do this in-place, can I use a list or a bytearray instead?\n",
" * Yes" " * Yes"
] ]
}, },