"This notebook was prepared by [eamanu](http://github.com/eamanu). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges)."
]
},
{
"cell_type":"markdown",
"metadata":{
"deletable":true,
"editable":true
},
"source":[
"# Challenge Notebook"
]
},
{
"cell_type":"markdown",
"metadata":{
"deletable":true,
"editable":true
},
"source":[
"## Problem: Remove specified characters in a string\t\n",
"\n",
"* [Constraints](#Constraints)\n",
"* [Test Cases](#Test-Cases)\n",
"* [Algorithm](#Algorithm)\n",
"* [Code](#Code)\n",
"* [Unit Test](#Unit-Test)\n",
"* [Solution Notebook](#Solution-Notebook)"
]
},
{
"cell_type":"markdown",
"metadata":{
"deletable":true,
"editable":true
},
"source":[
"## Constraints\n",
"\n",
"* Can we assume the string is ASCII?\n",
" * Yes\n",
" * Note: Unicode strings could require special handling depending on your language\n",
"* Can we assume this is case sensitive?\n",
" * Yes\n",
"* Can we use additional data structures?\n",
" * Yes\n",
"* Can we assume this fits in memory?\n",
" * Yes"
]
},
{
"cell_type":"markdown",
"metadata":{
"deletable":true,
"editable":true
},
"source":[
"## Test Cases\n",
"\n",
"String = 'Python is great'\n",
"chars -> This is the characters to remove from String\n",
"\n",
"* chars = None -> False\n",
"* chars = '' -> 'Python is great'\n",
"* chars = 'y' -> 'Pthon is great'\n",
"* chars = 'tp' -> 'yhon is grea'"
]
},
{
"cell_type":"markdown",
"metadata":{
"deletable":true,
"editable":true
},
"source":[
"## Algorithm\n",
"\n",
"Refer to the [Solution Notebook](http://nbviewer.ipython.org/github/donnemartin/interactive-coding-challenges/blob/master/arrays_strings/remove_chars/remove_chars_solution.ipynb). If you are stuck and need a hint, the solution notebook's algorithm discussion might be a good place to start."
"Review the [Solution Notebook](http://nbviewer.ipython.org/github/donnemartin/interactive-coding-challenges/blob/master/arrays_strings/remove_chars/remove_chars_solution.ipynb) for a discussion on algorithms and code solutions."