From 8734f38408697746f60bbcc254f42730345d6f20 Mon Sep 17 00:00:00 2001 From: wdonahoe Date: Thu, 9 Jul 2015 11:37:39 -0400 Subject: [PATCH] removed my code --- arrays_strings/group_items/group_ordered.py | 26 --------------------- 1 file changed, 26 deletions(-) delete mode 100644 arrays_strings/group_items/group_ordered.py diff --git a/arrays_strings/group_items/group_ordered.py b/arrays_strings/group_items/group_ordered.py deleted file mode 100644 index 3de2483..0000000 --- a/arrays_strings/group_items/group_ordered.py +++ /dev/null @@ -1,26 +0,0 @@ -def make_order_list(list_in): - order_list = [] - for item in list_in: - if item not in order_list: - order_list.append(item) - return order_list - - -def group_ordered(list_in): - if list_in is None: - return None - order_list = make_order_list(list_in) - current = 0 - for item in order_list: - search = current + 1 - while True: - try: - if list_in[search] != item: - search += 1 - else: - current += 1 - list_in[current], list_in[search] = list_in[search], list_in[current] - search += 1 - except IndexError: - break - return list_in