       "output_type": "stream",
       "text": [
        "Empty input\n",
        "One element\n",
        "Two or more elements\n",
        "Success: test_selection_sort\n",
 
</s> remove     "* Empty input -> []\n",
 </s> add     "* None -> None\n",
    "* [] -> []\n", </s> remove     "collapsed": false
 </s> add     "collapsed": true </s> remove     "def selection_sort_iterative(data):\n",
 </s> add     "def find_min_index(data, start):\n",
    "    min_index = start\n",
    "    for i in range(start + 1, len(data)):\n",
    "        if data[i] < data[min_index]:\n",
    "            min_index = i\n",
    "    return min_index\n",
    "\n",
    "\n",
    "def swap(data, i, j):\n",
    "    if (i != j):\n",
    "        data[i], data[j] = data[j], data[i]\n",
    "\n",
    "\n",
    "def selection_sort_recursive(data, start=0):\n",
    "    if data is None:\n",
    "        return None\n",
    "    if start < len(data) - 1:\n",
    "        swap(data, start, find_min_index(data, start))\n",
    "        selection_sort_recursive(data, start+1)\n",
    "\n",
    "\n",
    "def selection_sort_iterative_alt(data):\n",
    "    if data is None:\n",
    "        return None\n", </s> remove    "execution_count": 4,
 </s> add    "execution_count": 3,
      "None input\n",
      "Empty input\n",
      "One element\n",
      "Two or more elements\n",
      "Success: test_selection_sort\n",
      "\n",
      "None input\n",
       "output_type": "stream",
       "text": [
      "None input\n",
      "Empty input\n",
      "One element\n",
      "Two or more elements\n",
      "Success: test_selection_sort\n",
      "\n",
      "None input\n",
        "Empty input\n",
        "One element\n",
        "Two or more elements\n",
        "Success: test_selection_sort\n",
keep add keep keep keep keep
 Polish selection sort challenge and solution 
sorting_searching/selection_sort/selection_sort_solution.ipynb