Cleared queue challenge code section. Changed references from NULL to None to be more Pythonic.

This commit is contained in:
Donne Martin
2015-07-06 05:47:40 -04:00
parent 8aa4f25354
commit bb1bad1cc7
2 changed files with 12 additions and 29 deletions

View File

@@ -38,7 +38,7 @@
"\n",
"* If there is one item in the list, do you expect the first and last pointers to both point to it?\n",
" * Yes\n",
"* If there are no items on the list, do you expect the first and last pointers to be NULL?\n",
"* 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"
@@ -79,10 +79,10 @@
"\n",
"### Dequeue\n",
"\n",
"* If the list is empty, return NULL\n",
"* If the list is empty, return None\n",
"* If the list has one node\n",
" * Save the first node's value\n",
" * Set first and last to NULL\n",
" * Set first and last to None\n",
" * Return the saved value\n",
"* Else\n",
" * Save the first node's value\n",