분류 전체보기 (248) 썸네일형 리스트형 [연결리스트] 19 역순 연결 리스트 II(Reverse Linked List II) https://leetcode.com/problems/reverse-linked-list-ii/ Reverse Linked List II - 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 인덱스 m에서 n까지를 역순으로 만드는 문제입니다. 이때, 인덱스는 0이 아닌 1부터 시작합니다. # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # sel.. [연결리스트] 18 홀짝 연결 리스트(Odd Even Linked List) https://leetcode.com/problems/odd-even-linked-list/ Odd Even Linked List - 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 # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def oddEvenL.. [연결리스트] 17 페어의 노드 스왑(Swap Nodes in Pairs) https://leetcode.com/problems/swap-nodes-in-pairs/ Swap Nodes in Pairs - 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 연결리스트를 2칸씩이동하며 값을 swap해주면 됩니다. # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next.. [연결리스트] 16 두 수의 덧셈(Reverse Linked List) https://leetcode.com/problems/add-two-numbers/ Add Two Numbers - 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 역순으로 저장된 연결 리스트의 숫자를 더하는 문제입니다. 연결리스트의 값들을 문자열로 이어붙이고 숫자로 변환한 다음 계산한 결과를 다시 연결리스트로 바꾸면 됩니다. # Definition for singly-linked list. # class ListNode: # def __init__(self, v.. [연결리스트] 15 역순 연결 리스트(Reverse Linked List) https://leetcode.com/problems/reverse-linked-list/ Reverse Linked List - 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 연결 리스트를 뒤집는 문제입니다. 반복 구조를 통해 연결리스트를 뒤집으면 다음과 같습니다. # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = va.. [연결리스트] 14 두 정렬 리스트의 병합(Merge Two Sorted Lists) 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 정렬되어 있는 두 연결 리스트를 합치는 문제입니다. 이때, 각 리스트가 정렬된 상태라는 점이 중요합니다. 병합 정렬의 마지막 조합과 동일한 방식으로 재귀를 통해 코드를 작성하면 다음과 같습니다. # Definition for singly-linked list. # class L.. [연결리스트] 13 팰린드롬 연결 리스트(Palindrome Linked List) https://leetcode.com/problems/palindrome-linked-list/ Palindrome Linked List - 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 연결 리스트가 팰린드롬 구조인지 판별하는 문제입니다. 연결 리스트에서 값을 뽑아 리스트에 넣어준 후, 슬라이싱을 통해 원본 리스트가 뒤집은 리스트와 같은지 비교했습니다. # Definition for singly-linked list. # class ListNode: # def.. 노드 버전 관리 nvm https://ahn3330.tistory.com/45 [Node.js] windows에서 노드 버전 변경 - downgrade/upgrade 사용해야되는 모듈이 현재 node 버전을 지원하지않아서 버전 downgrade를 해야됐습니다. linux나 mac 환경에서 노드 버전 관리 방법은 정리해주신 분들이 많았지만, 윈도우 환경에서 방법을 정리해주 ahn3330.tistory.com 1. /svelte-app/ package.json에서 node-sass 버전 6.0.1로,package-lock.json삭제 npm install nvm use 14 npm run dev 2. /api/ nvm use 14 func start 3. // swa start http://localhost:5000 --api ... 이전 1 2 3 4 5 6 ··· 31 다음