/** * 【简单】判断链表中是否有环 * @param head ListNode类 * @return bool布尔型 */ function hasCycle(head) { console.log(head) } module.exports = { hasCycle, }