문제
풀이 및 답
def has_cycle(head):
if head is None:
return False
node_pool = []
node = head
while node:
if node in node_pool:
return True
node_pool.append(node)
node = node.next
return False