mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 19:08:02 +00:00
Polish linked list challenge and solution
Update algorithm discussion, solution, and constraints.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user