141. Linked List Cycle

Given a linked list, determine if it has a cycle in it.

Follow up:
Can you solve it without using extra space?

题目含义:判断一个列表是否有环路

 思路:参考142. Linked List Cycle II

posted @ 2017-10-24 16:22  daniel456  阅读(130)  评论(0编辑  收藏  举报