mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-05 17:08:02 +00:00
Polish delete mid solution.
This commit is contained in:
@@ -100,13 +100,12 @@
|
||||
" return\n",
|
||||
" if node is None:\n",
|
||||
" return\n",
|
||||
" node_next = node.next\n",
|
||||
" if node_next is None:\n",
|
||||
" if node.next is None:\n",
|
||||
" node.data = None\n",
|
||||
" node.next = None\n",
|
||||
" else:\n",
|
||||
" node.data = node_next.data\n",
|
||||
" node.next = node_next.next"
|
||||
" node.data = node.next.data\n",
|
||||
" node.next = node.next.next"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -196,21 +195,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.4.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in New Issue
Block a user