mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-03 16:08:02 +00:00
Update constraints for n stacks challenge and solution (#71)
This commit is contained in:
@@ -35,6 +35,14 @@
|
|||||||
"## Constraints\n",
|
"## Constraints\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* Are the stacks and array a fixed size?\n",
|
"* Are the stacks and array a fixed size?\n",
|
||||||
|
" * Yes\n",
|
||||||
|
"* Are the stacks equally sized?\n",
|
||||||
|
" * Yes\n",
|
||||||
|
"* Does pushing to a full stack result in an exception?\n",
|
||||||
|
" * Yes\n",
|
||||||
|
"* Does popping from an empty stack result in an exception?\n",
|
||||||
|
" * Yes\n",
|
||||||
|
"* Can we assume the user passed in stack index is valid?\n",
|
||||||
" * Yes"
|
" * Yes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -176,21 +184,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,6 +34,14 @@
|
|||||||
"## Constraints\n",
|
"## Constraints\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* Are the stacks and array a fixed size?\n",
|
"* Are the stacks and array a fixed size?\n",
|
||||||
|
" * Yes\n",
|
||||||
|
"* Are the stacks equally sized?\n",
|
||||||
|
" * Yes\n",
|
||||||
|
"* Does pushing to a full stack result in an exception?\n",
|
||||||
|
" * Yes\n",
|
||||||
|
"* Does popping from an empty stack result in an exception?\n",
|
||||||
|
" * Yes\n",
|
||||||
|
"* Can we assume the user passed in stack index is valid?\n",
|
||||||
" * Yes"
|
" * Yes"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -249,7 +257,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,
|
||||||
|
|||||||
Reference in New Issue
Block a user