### 问题描述

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

Can you solve it without using extra space?

### 代码

class Solution {
public:
if(p==0) return false;