19. Remove Nth Node From End of List 난이도: Easy https://leetcode.com/problems/remove-nth-node-from-end-of-list/ Remove Nth Node From End of 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 Language: C++ /** * Definition for singly-linked list. * struct ListNode { * int val; * ..
전체 글
내공냠냠160. Intersection of Two Linked Lists https://leetcode.com/explore/learn/card/linked-list/214/two-pointer-technique/1215/ 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 Language: C++ class Solution { public: ListNode *..
142. Linked List Cycle II https://leetcode.com/problems/linked-list-cycle-ii/ Linked List Cycle 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 Language: C++ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), n..
141. Linked List Cycle https://leetcode.com/explore/learn/card/linked-list/214/two-pointer-technique/1212/ 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 Language: C++ /** * Definition for singly-linked list. * struct ..
707. Design Linked List https://leetcode.com/problems/design-linked-list/ Design 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 Language: C++ https://leetcode.com/explore/learn/card/linked-list/209/singly-linked-list/1298/ // Definition for singly-linked list. struct..
297. Serialize and Deserialize Binary Tree https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ Serialize and Deserialize Binary Tree - 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 Language: C++ space 와 time 은 O(N) /** * Definition for a binary tree node. * struc..
236. Lowest Common Ancestor of a Binary Tree https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/ Lowest Common Ancestor of a Binary Tree - 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 Language: C++ /** * Definition for a binary tree node. * struct TreeNode { *..
117. Populating Next Right Pointers in Each Node II https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/ Populating Next Right Pointers in Each Node 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 Language: C++ /* // Definition for a Node. class Node {..