[LeetCode] #21. Merge Two Sorted Lists (python)
문제 https://leetcode.com/problems/merge-two-sorted-lists/ Merge Two Sorted Lists - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 주어진 두 연결 리스트를 하나의 정렬된 연결 리스트로 반환해야 한다. 예시 입출력 Input: list1 = [1,2,4], list2 = [1,3,4] Output: [1,1,2,3,4,4] 풀이 책 풀이 재귀 구조 class Solution: def mergeTwoLi..
2022. 2. 21.