<jupyter_start><jupyter_text>2020년 11월 18일 수요일 leetCode - Combinations (Python) 문제 : https://leetcode.com/problems/combinations/ 블로그 : https://somjang.tistory.com/entry/leetCode-77-Combinations-Python  첫번째 시도<jupyter_code>from itertools import combinations

class Solution:
    def combine(self, n: int, k: int) -> List[List[int]]:
        range_list = list(range(1, n+1))
        
        comb_list = list(combinations(range_list, k))
        
        return comb_list<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11823647294589178, 'fraction_numerical': 0.02404809619238477, 'mean_word_length': 3.8076923076923075, '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': '635863', 'license': 'MIT', 'n_tokens_mistral': 200, 'n_tokens_neox': 202, 'n_words': 33, 'path': 'DAY 201 ~ 300/DAY263_[leetCode] Combinations (Python).ipynb', 'repo_name': 'SOMJANG/CODINGTEST_PRACTICE', 'size': '499'}