Polish queue challenge and solution (#70)

Update constraints, algorithm discussion, and code.
This commit is contained in:
Donne Martin
2016-06-19 20:08:26 -04:00
committed by GitHub
parent 4cdb85e22d
commit 0d20ff5931
3 changed files with 46 additions and 40 deletions

View File

@@ -40,6 +40,8 @@
"* If there are no items on the list, do you expect the first and last pointers to be None?\n",
" * Yes\n",
"* If you dequeue on an empty queue, does that return None?\n",
" * Yes\n",
"* Can we assume this fits memory?\n",
" * Yes"
]
},
@@ -179,21 +181,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"display_name": "Python 3",
"language": "python",
"name": "python2"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
"pygments_lexer": "ipython3",
"version": "3.5.0"
}
},
"nbformat": 4,