list
-
2021-01-30] Swapping Nodes in a Linked ListIT/자기계발 ( Leetcode ) 2021. 1. 31. 16:23
오늘의 문제:leetcode.com/problems/swapping-nodes-in-a-linked-list/ Swapping Nodes in a 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 Daily Challenge는 어려워서.. 하고 Medium 문제중 하나를 선택하여 풀어보았다. 해당 예시를 보며 생각해보자. 입력값으론 Linked list 와 int가 주어지는데, ListNode의 앞에서 k 번째 값과 끝에서 k 번째 값을 스..
-
2021-01-13] Add Two NumbersIT/자기계발 ( Leetcode ) 2021. 1. 13. 12:41
오늘의 문제: leetcode.com/explore/challenge/card/january-leetcoding-challenge-2021/580/week-2-january-8th-january-14th/3601/ 확실히 주말에 힘든 문제인것 같은 느낌이다! 다행이 오늘 문제도 풀 수 있었다~ 자 예시를 보며 문제를 이해하자. 입력 값으로 ListNode 2개를 준다. 그 값이 더해져 값을 넘겨주는 것. 설명을 보면 결국 ListNode의 합산된 값의 새로운 List를 달라는 말이다. 문제풀이 1차) list의 시작부터 l1의 첫번재값*10의0승 = 첫째자리의 값 을 이용하여, list 마다 가진 값을 만들고, 둘을 합해 역순으로 list를 만들어 보는 방법을 선택했다. # Definition for s..
-
2021-01-05] Merge Two Sorted ListsIT/자기계발 ( Leetcode ) 2021. 1. 5. 03:05
오늘의 문제: leetcode.com/explore/challenge/card/january-leetcoding-challenge-2021/579/week-1-january-1st-january-7th/3592/ Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com 이번엔 그래도 바로 이해가능한 문제가 나왔다! 제목처럼 두개의 Input List를 오름 차순..