리스트2 [프로그래머스 2019 카카오 개발자 겨울 인턴쉽] 튜플 programmers.co.kr/learn/courses/30/lessons/64065?language=python3 코딩테스트 연습 - 튜플 "{{2},{2,1},{2,1,3},{2,1,3,4}}" [2, 1, 3, 4] "{{1,2,3},{2,1},{1,2,4,3},{2}}" [2, 1, 3, 4] "{{4,2,3},{3},{2,3,4,1},{2,3}}" [3, 2, 4, 1] programmers.co.kr c++로 문자열 처리가 넘 어려워서...파이썬을 사용했다. 역시 파이썬이 문자열 처리하기엔 너무 편하다 ㅠㅠ 파이썬으로 문자열 처리를 많이 안해봐서 코드가 번잡하다. ++ list sort하기 리스트 안에 sublist의 길이에 따라 오름차순으로 정렬하는법 a.sort(key=len) def s.. 2021. 1. 19. [leetcode 2] Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. Example 1: Input: l1 = [2,4,3], l2 = [5,6,4] Output: [7,0,8] Explanation: 342 +.. 2020. 10. 13. 이전 1 다음