mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Moved testing section to a new notebook cell.
This commit is contained in:
parent
e2852c7ca6
commit
495758d002
|
@ -83,8 +83,17 @@
|
|||
" temp = data[r]\n",
|
||||
" data[l+1:r+1] = data[l:r]\n",
|
||||
" data[l] = temp\n",
|
||||
" break\n",
|
||||
"\n",
|
||||
" break"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": true
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"print('Empty input')\n",
|
||||
"data = []\n",
|
||||
"insertion_sort(data)\n",
|
||||
|
|
Loading…
Reference in New Issue
Block a user