mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-05 00:48:03 +00:00
Cleared queue challenge code section. Changed references from NULL to None to be more Pythonic.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user