diff --git a/arrays_strings/group_items/group_ordered_challenge.ipynb b/arrays_strings/group_items/group_ordered_challenge.ipynb index a0a5b06..479a452 100644 --- a/arrays_strings/group_items/group_ordered_challenge.ipynb +++ b/arrays_strings/group_items/group_ordered_challenge.ipynb @@ -70,37 +70,15 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ - "def make_order_list(list_in):\n", - " order_list = []\n", - " for item in list_in:\n", - " if item not in order_list:\n", - " order_list.append(item)\n", - " return order_list\n", - "\n", "def group_ordered(list_in):\n", - " if list_in is None:\n", - " return None\n", - " order_list = make_order_list(list_in)\n", - " current = 0\n", - " for item in order_list:\n", - " search = current + 1\n", - " while True:\n", - " try:\n", - " if list_in[search] != item:\n", - " search += 1\n", - " else:\n", - " current += 1\n", - " list_in[current], list_in[search] = list_in[search], list_in[current]\n", - " search += 1\n", - " except IndexError:\n", - " break\n", - " return list_in" + " # TODO: Implement me\n", + " pass" ] }, {