mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Update arrays_strings constraints
This commit is contained in:
parent
1bbe9c68d5
commit
e1239d8902
|
@ -39,7 +39,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 this case sensitive?\n",
|
"* Is this case sensitive?\n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
"* Can you use additional data structures? \n",
|
"* Can we use additional data structures? \n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
"* Can we assume this fits in memory?\n",
|
"* Can we assume this fits in memory?\n",
|
||||||
" * Yes"
|
" * Yes"
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.4.3"
|
"version": "3.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
|
@ -38,7 +38,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 this case sensitive?\n",
|
"* Is this case sensitive?\n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
"* Can you use additional data structures? \n",
|
"* Can we use additional data structures? \n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
"* Can we assume this fits in memory?\n",
|
"* Can we assume this fits in memory?\n",
|
||||||
" * Yes"
|
" * Yes"
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.4.3"
|
"version": "3.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
|
@ -37,9 +37,11 @@
|
||||||
"* Can we assume the string is ASCII?\n",
|
"* Can we assume the string is ASCII?\n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
" * Note: Unicode strings could require special handling depending on your language\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",
|
"* 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"
|
" * Yes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -157,7 +159,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.4.3"
|
"version": "3.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
|
@ -36,9 +36,11 @@
|
||||||
"* Can we assume the string is ASCII?\n",
|
"* Can we assume the string is ASCII?\n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
" * Note: Unicode strings could require special handling depending on your language\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",
|
"* 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"
|
" * Yes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -245,7 +247,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.4.3"
|
"version": "3.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
|
@ -34,12 +34,12 @@
|
||||||
"source": [
|
"source": [
|
||||||
"## Constraints\n",
|
"## Constraints\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* Can I assume the string is ASCII?\n",
|
"* Can we assume the string is ASCII?\n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
" * Note: Unicode strings could require special handling depending on your language\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",
|
"* Since we need to do this in-place, it seems we cannot use the slice operator or the reversed function?\n",
|
||||||
" * Correct\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"
|
" * Yes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.4.3"
|
"version": "3.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
|
@ -36,12 +36,12 @@
|
||||||
"source": [
|
"source": [
|
||||||
"## Constraints\n",
|
"## Constraints\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* Can I assume the string is ASCII?\n",
|
"* Can we assume the string is ASCII?\n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
" * Note: Unicode strings could require special handling depending on your language\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",
|
"* Since we need to do this in-place, it seems we cannot use the slice operator or the reversed function?\n",
|
||||||
" * Correct\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"
|
" * Yes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -303,7 +303,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.4.3"
|
"version": "3.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
|
@ -34,12 +34,14 @@
|
||||||
"source": [
|
"source": [
|
||||||
"## Constraints\n",
|
"## Constraints\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* Can you assume the string is ASCII?\n",
|
"* Can we assume the string is ASCII?\n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
" * Note: Unicode strings could require special handling depending on your language\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",
|
"* 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"
|
" * Yes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -151,21 +153,21 @@
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 2",
|
"display_name": "Python 3",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python2"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
"name": "ipython",
|
"name": "ipython",
|
||||||
"version": 2
|
"version": 3
|
||||||
},
|
},
|
||||||
"file_extension": ".py",
|
"file_extension": ".py",
|
||||||
"mimetype": "text/x-python",
|
"mimetype": "text/x-python",
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython2",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "2.7.10"
|
"version": "3.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
|
@ -34,12 +34,14 @@
|
||||||
"source": [
|
"source": [
|
||||||
"## Constraints\n",
|
"## Constraints\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* Can you assume the string is ASCII?\n",
|
"* Can we assume the string is ASCII?\n",
|
||||||
" * Yes\n",
|
" * Yes\n",
|
||||||
" * Note: Unicode strings could require special handling depending on your language\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",
|
"* 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"
|
" * Yes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -185,7 +187,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.4.3"
|
"version": "3.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user