Polish linked list challenge and solution

Update algorithm discussion, solution, and constraints.
This commit is contained in:
Donne Martin
2016-06-12 23:29:58 -04:00
parent 1e9ffd3f33
commit 58409ac286
3 changed files with 88 additions and 65 deletions

View File

@@ -39,7 +39,9 @@
"* Is this a circular list?\n",
" * No\n",
"* Do we keep track of the tail or just the head?\n",
" * Just the head"
" * Just the head\n",
"* Can we insert None values?\n",
" * No"
]
},
{
@@ -133,7 +135,7 @@
" pass\n",
" # TODO: Implement me\n",
"\n",
" def append(self, data, next_node=None):\n",
" def append(self, data):\n",
" pass\n",
" # TODO: Implement me\n",
"\n",
@@ -310,21 +312,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,