Moved testing section to a new notebook cell.

This commit is contained in:
Donne Martin 2015-05-27 07:15:44 -04:00
parent e2852c7ca6
commit 495758d002

View File

@ -83,8 +83,17 @@
" temp = data[r]\n", " temp = data[r]\n",
" data[l+1:r+1] = data[l:r]\n", " data[l+1:r+1] = data[l:r]\n",
" data[l] = temp\n", " data[l] = temp\n",
" break\n", " break"
"\n", ]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"print('Empty input')\n", "print('Empty input')\n",
"data = []\n", "data = []\n",
"insertion_sort(data)\n", "insertion_sort(data)\n",