mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-08 18:38:03 +00:00
Changed discussions of NULL to None to be more Pythonic.
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
"\n",
|
||||
"### Pop\n",
|
||||
"\n",
|
||||
"* If stack is empty, return NULL\n",
|
||||
"* If stack is empty, return None\n",
|
||||
"* Else \n",
|
||||
" * Save top's value\n",
|
||||
" * Set top to top.next\n",
|
||||
@@ -97,7 +97,7 @@
|
||||
"\n",
|
||||
"### Peek\n",
|
||||
"\n",
|
||||
"* If stack is empty, return NULL\n",
|
||||
"* If stack is empty, return None\n",
|
||||
"* Else return top's value\n",
|
||||
"\n",
|
||||
"Complexity:\n",
|
||||
|
||||
Reference in New Issue
Block a user