141
-
[LeetCode] 141. Linked List CycleLeetCode 2021. 10. 13. 23:33
https://leetcode.com/problems/linked-list-cycle/ Linked List Cycle - 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 Linked List Cycle Linked List가 하나 주어진다. 이때 이 Linked List가 끝이 있는지 아니면 앞쪽으로 연결되어 싸이클이 만들어지는지 판단하는 문제다. Easy 문제라 매우매우 쉽다. 리스트 포인터를 저장하는 set을 만들어준 뒤, 한번씩 훑으며 set에 겹치는 포인..