<jupyter_start><jupyter_text>2020년 9월 8일 화요일 leetCode - Rank Transform of an Array (Python) 문제 : https://leetcode.com/problems/rank-transform-of-an-array/ 블로그 : https://somjang.tistory.com/entry/leetCode-1331-Rank-Transform-of-an-Array-Python  첫번째 시도<jupyter_code>class Solution:
    def arrayRankTransform(self, arr: List[int]) -> List[int]:
        arr_temp = list(set(arr))
        sorted_list= sorted(arr_temp)
        
        rank_dict = {}
        
        for i, num in enumerate(sorted_list):
            rank_dict[num] = i + 1
            
        answer = [rank_dict[num] for num in arr]
        
        return answer<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11532625189681335, 'fraction_numerical': 0.01669195751138088, 'mean_word_length': 2.5869565217391304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '102647', 'license': 'MIT', 'n_tokens_mistral': 248, 'n_tokens_neox': 251, 'n_words': 44, 'path': 'DAY 201 ~ 300/DAY202_[leetCode] Rank Transform of an Array (Python).ipynb', 'repo_name': 'SOMJANG/CODINGTEST_PRACTICE', 'size': '659'}