From 84d24239f7c3c9ad0052a9c17676d9d00ff37dc7 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Tue, 14 Mar 2023 23:38:55 -0600 Subject: [PATCH] clean up --- fucts/roman.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/fucts/roman.py b/fucts/roman.py index 8e9efba..d88d35c 100644 --- a/fucts/roman.py +++ b/fucts/roman.py @@ -1,15 +1,6 @@ from typing import List -def roman_sort(nums: List[str]) -> List[str]: - """ - Contributed by ChatGPT. - """ - values = {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000} - sorted_nums = sorted(nums, key=lambda x: sum(values[c.upper()] for c in x)) - return sorted_nums - - def roman_sort_with_ints(arr): """ Contributed by ChatGPT, who didn't know how to use .upper()