mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Tweaked replace char challenge problem statement and contraints.
This commit is contained in:
parent
f824de0807
commit
f7f9160ba4
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user