From 47750576bae461877c14d4096987ae5b977740eb Mon Sep 17 00:00:00 2001 From: wdonahoe Date: Thu, 9 Jul 2015 09:10:48 -0400 Subject: [PATCH] removed my code from challenge --- .../group_items/group_ordered_challenge.ipynb | 28 ++----------------- 1 file changed, 3 insertions(+), 25 deletions(-) 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" ] }, {