{"id":1521,"date":"2023-06-19T18:08:09","date_gmt":"2023-06-19T10:08:09","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=1521"},"modified":"2023-06-19T18:08:09","modified_gmt":"2023-06-19T10:08:09","slug":"%e3%80%90%e7%ae%97%e6%b3%95%e9%a2%98%e8%a7%a3%e3%80%9110-%e5%88%a4%e6%96%ad%e9%93%be%e8%a1%a8%e6%98%af%e5%90%a6%e6%9c%89%e7%8e%af","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/%e7%ae%97%e6%b3%95\/%e3%80%90%e7%ae%97%e6%b3%95%e9%a2%98%e8%a7%a3%e3%80%9110-%e5%88%a4%e6%96%ad%e9%93%be%e8%a1%a8%e6%98%af%e5%90%a6%e6%9c%89%e7%8e%af\/","title":{"rendered":"\u3010\u7b97\u6cd5\u9898\u89e3\u301110. \u5224\u65ad\u94fe\u8868\u662f\u5426\u6709\u73af"},"content":{"rendered":"<div class='wxsyncmain'>\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;\" data-mpa-powered-by=\"yiban.io\">\n<section style=\"margin-bottom: 8px;outline: 0px;visibility: visible;\">\n<section data-mpa-template-schema=\"body\" mpa-from-tpl=\"t\" style=\"margin: 10px;padding: 10px;outline: 0px;display: flex;visibility: visible;\">\n<section data-mpa-template-section=\"\" mpa-from-tpl=\"t\" itemtype=\"https:\/\/mp.weixin.qq.com\/voc\/Section\" itemscope=\"\" style=\"padding: 12px;outline: 0px;border-left: 2px solid rgb(151, 151, 151);line-height: 22px;font-size: 14px;color: rgb(113, 113, 113);visibility: visible;\">\n<section data-mpa-template-text=\"\" itemprop=\"text\" mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\">\u8fd9\u662f\u4e00\u9053\u7b80\u5355\u9898\u3002<\/p>\n<p style=\"outline: 0px;text-align: left;visibility: visible;\">\u9898\u76ee\u6765\u81ea\uff1ahttps:\/\/leetcode.cn\/problems\/linked-list-cycle\/description\/<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"outline: 0px;visibility: visible;\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\"  \/><\/p>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\">\n<section data-mpa-template-schema=\"title\" itemtype=\"https:\/\/mp.weixin.qq.com\/voc\/Section\" itemscope=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\">\n<section data-mpa-template-title=\"\" itemprop=\"title\" mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\">\n<section mpa-from-tpl=\"t\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;text-align: center;transform: translate3d(2px, 0px, 0px);visibility: visible;\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;display: inline-block;min-width: 10%;vertical-align: top;background-color: rgb(57, 160, 255);visibility: visible;\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\">\n<section mpa-from-tpl=\"t\" style=\"margin-top: 5px;margin-bottom: -5px;outline: 0px;transform: translate3d(-5px, 0px, 0px);visibility: visible;\">\n<section mpa-from-tpl=\"t\" style=\"padding-right: 8px;padding-left: 8px;outline: 0px;display: inline-block;min-width: 10%;vertical-align: top;border-style: solid;border-width: 8px 1px 1px;border-radius: 0px;border-color: rgb(62, 62, 62);background-color: rgb(255, 255, 255);visibility: visible;\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\">\n<section mpa-from-tpl=\"t\" style=\"padding-right: 8px;padding-left: 8px;outline: 0px;text-align: left;visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\"><em style=\"outline: 0px;visibility: visible;\"><strong mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\"><span style=\"outline: 0px;color: rgb(0, 0, 0);font-family: PingFangSC-Medium, &quot;PingFang SC&quot;;font-size: 16px;visibility: visible;\">\u9898\u76ee<\/span><\/strong><\/em><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;visibility: visible;\"><span style=\"outline: 0px;visibility: visible;\">\u7ed9\u4f60\u4e00\u4e2a\u94fe\u8868\u7684\u5934\u8282\u70b9&nbsp;<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;visibility: visible;\">head<\/span><span style=\"outline: 0px;visibility: visible;\">\uff0c\u5224\u65ad\u94fe\u8868\u4e2d\u662f\u5426\u6709\u73af\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;visibility: visible;\"><span style=\"outline: 0px;visibility: visible;\">\u5982\u679c\u94fe\u8868\u4e2d\u6709\u67d0\u4e2a\u8282\u70b9\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fde\u7eed\u8ddf\u8e2a&nbsp;<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;visibility: visible;\">next<\/span><span style=\"outline: 0px;visibility: visible;\">&nbsp;\u6307\u9488\u518d\u6b21\u5230\u8fbe\uff0c\u5219\u94fe\u8868\u4e2d\u5b58\u5728\u73af\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;visibility: visible;\"><span style=\"outline: 0px;visibility: visible;\">\u5982\u679c\u94fe\u8868\u4e2d\u5b58\u5728\u73af \uff0c\u5219\u8fd4\u56de&nbsp;<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;visibility: visible;\">true<\/span><span style=\"outline: 0px;visibility: visible;\">\u3002\u5426\u5219\uff0c\u8fd4\u56de&nbsp;<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;visibility: visible;\">false<\/span><span style=\"outline: 0px;visibility: visible;\">\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;visibility: visible;\"><span style=\"outline: 0px;visibility: visible;\"><br style=\"outline: 0px;visibility: visible;\"  \/><\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;visibility: visible;\"><strong style=\"outline: 0px;visibility: visible;\">\u793a\u4f8b1:<\/strong><span style=\"outline: 0px;visibility: visible;\"><\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;visibility: visible;\"><strong style=\"outline: 0px;visibility: visible;\"><br style=\"outline: 0px;visibility: visible;\"  \/><\/strong><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;visibility: visible;\"><span style=\"outline: 0px;visibility: visible;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.3220338983050847\"  data-type=\"png\" data-w=\"531\" style=\"outline: 0px;box-sizing: border-box !important;visibility: visible !important;width: 531px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043459803.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.3220338983050847\"  data-type=\"png\" data-w=\"531\" style=\"outline: 0px;box-sizing: border-box !important;visibility: visible !important;width: 531px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043459803.png\"  \/><\/noscript><\/span><\/p>\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;\">\n<p style=\"outline: 0px;visibility: visible;\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\"  \/><\/p>\n<section data-mpa-preserve-tpl-color=\"t\" data-mpa-template=\"t\" mpa-preserve=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\">\n<pre style=\"outline: 0px;background: none;visibility: visible;\"><code style=\"margin-right: 0.15em;margin-left: 0.15em;padding: 5.95px;outline: 0px;border-radius: 4px;font-size: 0.85em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;overflow-x: auto;white-space: nowrap;visibility: visible;\">\u8f93\u5165\uff1ahead = [<span style=\"outline: 0px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);width: 7px;text-decoration-style: solid;text-decoration-color: rgb(209, 154, 102);visibility: visible;\">3<\/span>,<span style=\"outline: 0px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);width: 7px;text-decoration-style: solid;text-decoration-color: rgb(209, 154, 102);visibility: visible;\">2<\/span>,<span style=\"outline: 0px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);width: 7px;text-decoration-style: solid;text-decoration-color: rgb(209, 154, 102);visibility: visible;\">0<\/span>,<span style=\"outline: 0px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);width: 14px;text-decoration-style: solid;text-decoration-color: rgb(209, 154, 102);visibility: visible;\">-4<\/span>], pos = 1<br mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\"  \/>\u8f93\u51fa\uff1a<span style=\"outline: 0px;color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(86, 182, 194);visibility: visible;\">true<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\"  \/>\u89e3\u91ca\uff1a\u94fe\u8868\u4e2d\u6709\u4e00\u4e2a\u73af\uff0c\u5176\u5c3e\u90e8\u8fde\u63a5\u5230\u7b2c\u4e8c\u4e2a\u8282\u70b9\u3002<\/code><\/pre>\n<\/section>\n<p style=\"outline: 0px;visibility: visible;\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;visibility: visible;\"  \/><\/p>\n<p style=\"outline: 0px;visibility: visible;\"><span style=\"outline: 0px;font-size: 14px;visibility: visible;\"><strong style=\"outline: 0px;color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;text-align: left;visibility: visible;\">\u793a\u4f8b2:<\/strong><\/span><\/p>\n<p style=\"outline: 0px;visibility: visible;\"><span style=\"outline: 0px;font-size: 14px;visibility: visible;\"><strong style=\"outline: 0px;color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;text-align: left;visibility: visible;\"><br style=\"outline: 0px;visibility: visible;\"  \/><\/strong><\/span><\/p>\n<p style=\"outline: 0px;visibility: visible;\"><span style=\"outline: 0px;font-size: 14px;visibility: visible;\"><strong style=\"outline: 0px;color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;text-align: left;visibility: visible;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.5223880597014925\" data-type=\"png\" data-w=\"201\"  style=\"outline: 0px;box-sizing: border-box !important;visibility: visible !important;width: 201px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043500422.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5223880597014925\" data-type=\"png\" data-w=\"201\"  style=\"outline: 0px;box-sizing: border-box !important;visibility: visible !important;width: 201px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043500422.png\"  \/><\/noscript><\/strong><\/span><\/p>\n<p style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 14px;\"><strong style=\"outline: 0px;color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;text-align: left;\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><\/strong><\/span><\/p>\n<section data-mpa-preserve-tpl-color=\"t\" data-mpa-template=\"t\" mpa-preserve=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<pre style=\"outline: 0px;background: none;\"><code style=\"margin-right: 0.15em;margin-left: 0.15em;padding: 5.95px;outline: 0px;border-radius: 4px;font-size: 0.85em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;overflow-x: auto;white-space: nowrap;\">\u8f93\u5165\uff1ahead = [<span style=\"outline: 0px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);width: 7px;text-decoration-style: solid;text-decoration-color: rgb(209, 154, 102);\">1<\/span>,<span style=\"outline: 0px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);width: 7px;text-decoration-style: solid;text-decoration-color: rgb(209, 154, 102);\">2<\/span>], pos =&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);width: 7px;text-decoration-style: solid;text-decoration-color: rgb(209, 154, 102);\">0<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>\u8f93\u51fa\uff1a<span style=\"outline: 0px;color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(86, 182, 194);\">true<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>\u89e3\u91ca\uff1a\u94fe\u8868\u4e2d\u6709\u4e00\u4e2a\u73af\uff0c\u5176\u5c3e\u90e8\u8fde\u63a5\u5230\u7b2c\u4e00\u4e2a\u8282\u70b9\u3002<\/code><\/pre>\n<\/section>\n<p style=\"outline: 0px;\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><\/p>\n<p style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 14px;\"><strong style=\"outline: 0px;color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;text-align: left;\">\u793a\u4f8b3:<\/strong><\/span><\/p>\n<p style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 14px;\"><strong style=\"outline: 0px;color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;text-align: left;\"><br style=\"outline: 0px;\"  \/><\/strong><\/span><\/p>\n<p style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 14px;\"><strong style=\"outline: 0px;color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;text-align: left;\"><img decoding=\"async\" data-ratio=\"1\" data-type=\"png\" data-w=\"65\" class=\"rich_pages wxw-img lazyload\"  style=\"outline: 0px;box-sizing: border-box !important;width: 65px !important;visibility: visible !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043500735.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" data-ratio=\"1\" data-type=\"png\" data-w=\"65\" class=\"rich_pages wxw-img\"  style=\"outline: 0px;box-sizing: border-box !important;width: 65px !important;visibility: visible !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043500735.png\"  \/><\/noscript><\/strong><\/span><\/p>\n<p style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 14px;\"><strong style=\"outline: 0px;color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;text-align: left;\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><\/strong><\/span><\/p>\n<section data-mpa-preserve-tpl-color=\"t\" data-mpa-template=\"t\" mpa-preserve=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<pre style=\"outline: 0px;background: none;\"><code style=\"margin-right: 0.15em;margin-left: 0.15em;padding: 5.95px;outline: 0px;border-radius: 4px;font-size: 0.85em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;overflow-x: auto;white-space: nowrap;\">\u8f93\u5165\uff1ahead = [<span style=\"outline: 0px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);width: 7px;text-decoration-style: solid;text-decoration-color: rgb(209, 154, 102);\">1<\/span>], pos =&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);width: 14px;text-decoration-style: solid;text-decoration-color: rgb(209, 154, 102);\">-1<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>\u8f93\u51fa\uff1a<span style=\"outline: 0px;color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);width: 36px;text-decoration-style: solid;text-decoration-color: rgb(86, 182, 194);\">false<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>\u89e3\u91ca\uff1a\u94fe\u8868\u4e2d\u6ca1\u6709\u73af\u3002<\/code><\/pre>\n<\/section>\n<\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;display: flex;justify-content: center;align-items: center;width: 677px;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;width: 113px;height: 18px;display: flex;justify-content: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.1592920353982301\" data-w=\"226\"  style=\"outline: 0px;display: block;box-sizing: border-box !important;width: 226px !important;visibility: visible !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043501228.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.1592920353982301\" data-w=\"226\"  style=\"outline: 0px;display: block;box-sizing: border-box !important;width: 226px !important;visibility: visible !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043501228.png\"  \/><\/noscript><\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><\/p>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mpa-template-schema=\"title\" itemtype=\"https:\/\/mp.weixin.qq.com\/voc\/Section\" itemscope=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mpa-template-title=\"\" itemprop=\"title\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section mpa-from-tpl=\"t\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;text-align: center;transform: translate3d(2px, 0px, 0px);\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;display: inline-block;min-width: 10%;vertical-align: top;background-color: rgb(57, 160, 255);\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section mpa-from-tpl=\"t\" style=\"margin-top: 5px;margin-bottom: -5px;outline: 0px;transform: translate3d(-5px, 0px, 0px);\">\n<section mpa-from-tpl=\"t\" style=\"padding-right: 8px;padding-left: 8px;outline: 0px;display: inline-block;min-width: 10%;vertical-align: top;border-style: solid;border-width: 8px 1px 1px;border-radius: 0px;border-color: rgb(62, 62, 62);background-color: rgb(255, 255, 255);\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section mpa-from-tpl=\"t\" style=\"padding-right: 8px;padding-left: 8px;outline: 0px;text-align: left;\">\n<p style=\"outline: 0px;\"><em style=\"outline: 0px;font-size: 24px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><strong style=\"outline: 0px;\"><span style=\"outline: 0px;color: rgb(0, 0, 0);font-size: 16px;text-decoration-style: solid;text-decoration-color: rgb(0, 0, 0);\">\u89e3\u6cd5\u4e00\uff1a\u5faa\u73af\u6807\u8bb0<\/span><\/strong><\/em><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u5faa\u73af\u904d\u5386\u6bcf\u4e00\u4e2a\u8282\u70b9\u5e76\u6807\u8bb0\u4e3a\u5df2\u8bbf\u95ee\uff0c\u5982\u679c\u53ef\u4ee5\u518d\u6b21\u8bbf\u95ee\u5230\u5df2\u7ecf\u8bbf\u95ee\u8fc7\u7684\u8282\u70b9\u5219\u8fd4\u56de<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;text-align: start;\">true<\/span><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\uff0c\u5426\u5219\u6700\u540e\u8fd4\u56de<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;text-align: start;\">false<\/span><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u3002<\/span><\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><\/span><\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-top: 2px;padding-bottom: 2px;padding-left: 24px;outline: 0px;width: 677px;display: flex;align-items: center;justify-content: flex-start;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-bottom: -26px;margin-left: -21px;outline: 0px;display: flex;justify-content: center;align-items: center;width: 26px;height: 26px;background: rgb(245, 252, 255);border-width: 1px;border-style: solid;border-color: rgb(91, 158, 255);text-align: center;align-self: flex-start;z-index: 1;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(78, 150, 255);line-height: 26px;\">01<\/p>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;z-index: 1;border-bottom: 1px solid rgb(57, 160, 255);\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-right: 12px;padding-left: 12px;outline: 0px;text-align: center;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(57, 160, 255);line-height: 22px;\">Java \u4ee3\u7801\u5b9e\u73b0<\/p>\n<\/section>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-top: -4px;outline: 0px;width: 6px;height: 6px;display: flex;justify-content: center;align-items: center;background-color: rgb(253, 217, 80);align-self: flex-end;z-index: 2;\"><br style=\"outline: 0px;\"  \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-mpa-preserve-tpl-color=\"t\" data-mpa-template=\"t\" mpa-preserve=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<pre style=\"outline: 0px;background: none;\"><code style=\"margin-right: 0.15em;margin-left: 0.15em;padding: 5.95px;outline: 0px;border-radius: 4px;font-size: 0.85em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;overflow-x: auto;white-space: nowrap;\"><span style=\"outline: 0px;color: rgb(92, 99, 112);background: rgba(0, 0, 0, 0);width: 267px;text-decoration-style: solid;text-decoration-color: rgb(92, 99, 112);font-style: italic;\">\/**<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* Definition for singly-linked list.<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* class ListNode {<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* int val;<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* ListNode next;<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* ListNode(int x) {<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* val = x;<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* next = null;<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* }<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* }<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;*\/<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 43px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">public<\/span>&nbsp;<span style=\"outline: 0px;background: rgba(0, 0, 0, 0);width: 108px;text-decoration-style: solid;text-decoration-color: rgb(171, 178, 191);\"><span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 36px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">class<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);width: 58px;text-decoration-style: solid;text-decoration-color: rgb(230, 192, 123);\">Solution<\/span>&nbsp;<\/span>{<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;background: rgba(0, 0, 0, 0);width: 282px;text-decoration-style: solid;text-decoration-color: rgb(171, 178, 191);\"><span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 43px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 51px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">boolean<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);width: 58px;text-decoration-style: solid;text-decoration-color: rgb(97, 174, 238);\">hasCycle<\/span><span style=\"outline: 0px;background: rgba(0, 0, 0, 0);width: 108px;text-decoration-style: solid;text-decoration-color: rgb(171, 178, 191);\">(ListNode head)<\/span>&nbsp;<\/span>{<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 14px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">if<\/span>(head ==&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">null<\/span>){<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 43px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">return<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 36px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">false<\/span>;<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&lt;ListNode&gt; visited =&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 22px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">new<\/span>&nbsp;HashSet&lt;&gt;();<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 36px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">while<\/span>(head !=&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">null<\/span>){<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 14px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">if<\/span>(visited.contains(head)){<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 43px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">return<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">true<\/span>;<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;visited.add(head);<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;head = head.next;<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 43px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">return<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 36px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">false<\/span>;<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>}<\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;font-size: 14px;\"><\/span><br style=\"outline: 0px;\"  \/><\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-top: 2px;padding-bottom: 2px;padding-left: 24px;outline: 0px;width: 677px;display: flex;align-items: center;justify-content: flex-start;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-bottom: -26px;margin-left: -21px;outline: 0px;display: flex;justify-content: center;align-items: center;width: 26px;height: 26px;background: rgb(245, 252, 255);border-width: 1px;border-style: solid;border-color: rgb(91, 158, 255);text-align: center;align-self: flex-start;z-index: 1;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(78, 150, 255);line-height: 26px;\">02<\/p>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;z-index: 1;border-bottom: 1px solid rgb(57, 160, 255);\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-right: 12px;padding-left: 12px;outline: 0px;text-align: center;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(57, 160, 255);line-height: 22px;\">Go \u4ee3\u7801\u5b9e\u73b0<\/p>\n<\/section>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-top: -4px;outline: 0px;width: 6px;height: 6px;display: flex;justify-content: center;align-items: center;background-color: rgb(253, 217, 80);align-self: flex-end;z-index: 2;\"><br style=\"outline: 0px;\"  \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-mpa-preserve-tpl-color=\"t\" data-mpa-template=\"t\" mpa-preserve=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<pre style=\"outline: 0px;background: none;\"><code style=\"margin-right: 0.15em;margin-left: 0.15em;padding: 5.95px;outline: 0px;border-radius: 4px;font-size: 0.85em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;overflow-x: auto;white-space: nowrap;\"><span style=\"outline: 0px;color: rgb(92, 99, 112);background: rgba(0, 0, 0, 0);width: 267px;text-decoration-style: solid;text-decoration-color: rgb(92, 99, 112);font-style: italic;\">\/**<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* Definition for singly-linked list.<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* type ListNode struct {<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* Val int<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* Next *ListNode<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;* }<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;*\/<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><span style=\"outline: 0px;background: rgba(0, 0, 0, 0);width: 246px;text-decoration-style: solid;text-decoration-color: rgb(171, 178, 191);\"><span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">func<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);width: 58px;text-decoration-style: solid;text-decoration-color: rgb(97, 174, 238);\">hasCycle<\/span><span style=\"outline: 0px;background: rgba(0, 0, 0, 0);width: 116px;text-decoration-style: solid;text-decoration-color: rgb(171, 178, 191);\">(head *ListNode)<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(97, 174, 238);\">bool<\/span><\/span>&nbsp;{<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;visited :=&nbsp;<span style=\"outline: 0px;color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(230, 192, 123);\">make<\/span>(<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 22px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">map<\/span>[*ListNode]<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">bool<\/span>)<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 22px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">for<\/span>&nbsp;head !=&nbsp;<span style=\"outline: 0px;color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);width: 22px;text-decoration-style: solid;text-decoration-color: rgb(86, 182, 194);\">nil<\/span>&nbsp;{<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 14px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">if<\/span>&nbsp;visited[head] {<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 43px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">return<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(86, 182, 194);\">true<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;visited[head] =&nbsp;<span style=\"outline: 0px;color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);width: 29px;text-decoration-style: solid;text-decoration-color: rgb(86, 182, 194);\">true<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;head = head.Next<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);width: 43px;text-decoration-style: solid;text-decoration-color: rgb(198, 120, 221);\">return<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);width: 36px;text-decoration-style: solid;text-decoration-color: rgb(86, 182, 194);\">false<\/span><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/>}<\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-top: 2px;padding-bottom: 2px;padding-left: 24px;outline: 0px;width: 677px;display: flex;align-items: center;justify-content: flex-start;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-bottom: -26px;margin-left: -21px;outline: 0px;display: flex;justify-content: center;align-items: center;width: 26px;height: 26px;background: rgb(245, 252, 255);border-width: 1px;border-style: solid;border-color: rgb(91, 158, 255);text-align: center;align-self: flex-start;z-index: 1;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(78, 150, 255);line-height: 26px;\">03<\/p>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;z-index: 1;border-bottom: 1px solid rgb(57, 160, 255);\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-right: 12px;padding-left: 12px;outline: 0px;text-align: center;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(57, 160, 255);line-height: 22px;\">\u590d\u6742\u5ea6\u5206\u6790<\/p>\n<\/section>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-top: -4px;outline: 0px;width: 6px;height: 6px;display: flex;justify-content: center;align-items: center;background-color: rgb(253, 217, 80);align-self: flex-end;z-index: 2;\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u65f6\u95f4\u590d\u6742\u5ea6&nbsp;<em style=\"outline: 0px;\"><strong style=\"outline: 0px;\">O(N)<\/strong><\/em>\uff1a\u9700\u8981\u8bbf\u95ee\u94fe\u8868\u4e2d\u7684\u6bcf\u4e00\u4e2a\u8282\u70b9\uff0c\u65f6\u95f4\u590d\u6742\u5ea6\u4e3a\u94fe\u8868\u957f\u5ea6&nbsp;<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;text-align: start;\">n<\/span><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u7a7a\u95f4\u590d\u6742\u5ea6&nbsp;<em style=\"outline: 0px;\"><strong style=\"outline: 0px;\">O(N)<\/strong><\/em>\uff1a\u9700\u8981\u8bb0\u5f55\u6bcf\u4e2a\u8bbf\u95ee\u8fc7\u7684\u8282\u70b9\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u4e3a\u94fe\u8868\u7684\u957f\u5ea6&nbsp;<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;text-align: start;\">n<\/span><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u3002<\/span><\/p>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;font-size: 14px;\"><br style=\"outline: 0px;\"  \/><\/span><\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;display: flex;justify-content: center;align-items: center;width: 677px;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;width: 113px;height: 18px;display: flex;justify-content: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.1592920353982301\" data-w=\"226\"  style=\"outline: 0px;display: block;box-sizing: border-box !important;width: 226px !important;visibility: visible !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043502738.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.1592920353982301\" data-w=\"226\"  style=\"outline: 0px;display: block;box-sizing: border-box !important;width: 226px !important;visibility: visible !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043502738.png\"  \/><\/noscript><\/section>\n<\/section>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><br style=\"outline: 0px;\"  \/><\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mpa-template-schema=\"title\" itemtype=\"https:\/\/mp.weixin.qq.com\/voc\/Section\" itemscope=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mpa-template-title=\"\" itemprop=\"title\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section mpa-from-tpl=\"t\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;text-align: center;transform: translate3d(2px, 0px, 0px);\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;display: inline-block;min-width: 10%;vertical-align: top;background-color: rgb(57, 160, 255);\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section mpa-from-tpl=\"t\" style=\"margin-top: 5px;margin-bottom: -5px;outline: 0px;transform: translate3d(-5px, 0px, 0px);\">\n<section mpa-from-tpl=\"t\" style=\"padding-right: 8px;padding-left: 8px;outline: 0px;display: inline-block;min-width: 10%;vertical-align: top;border-style: solid;border-width: 8px 1px 1px;border-radius: 0px;border-color: rgb(62, 62, 62);background-color: rgb(255, 255, 255);\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section mpa-from-tpl=\"t\" style=\"padding-right: 8px;padding-left: 8px;outline: 0px;text-align: left;\">\n<p style=\"outline: 0px;\"><em style=\"outline: 0px;font-size: 24px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><strong style=\"outline: 0px;\"><span style=\"outline: 0px;color: rgb(0, 0, 0);font-size: 16px;text-decoration-style: solid;text-decoration-color: rgb(0, 0, 0);\">\u89e3\u6cd5\u4e8c\uff1a\u5feb\u6162\u6307\u9488<\/span><\/strong><\/em><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u5feb\u6162\u6307\u9488\u6cd5\uff0c\u8ba9\u5feb\u6307\u9488\u6bcf\u6b21\u8d70<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;text-align: start;\">2<\/span><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u6b65\uff0c\u6162\u6307\u9488\u6bcf<\/span><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u6b21\u8d70<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;text-align: start;\">1<\/span><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u6b65\uff0c\u5982\u679c\u5b58\u5728\u73af\uff0c\u90a3\u4e48\u5feb\u6307\u9488\u6700\u7ec8\u4e00\u5b9a\u4f1a\u518d\u6b21\u8ffd\u4e0a\u6162\u6307\u9488\u3002<\/span><\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\"><br style=\"outline: 0px;\"  \/><\/span><\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-top: 2px;padding-bottom: 2px;padding-left: 24px;outline: 0px;width: 677px;display: flex;align-items: center;justify-content: flex-start;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-bottom: -26px;margin-left: -21px;outline: 0px;display: flex;justify-content: center;align-items: center;width: 26px;height: 26px;background: rgb(245, 252, 255);border-width: 1px;border-style: solid;border-color: rgb(91, 158, 255);text-align: center;align-self: flex-start;z-index: 1;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(78, 150, 255);line-height: 26px;\">01<\/p>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;z-index: 1;border-bottom: 1px solid rgb(57, 160, 255);\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-right: 12px;padding-left: 12px;outline: 0px;text-align: center;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(57, 160, 255);line-height: 22px;\"><span style=\"outline: 0px;\">Java \u4ee3\u7801\u5b9e\u73b0<\/span><\/p>\n<\/section>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-top: -4px;outline: 0px;width: 6px;height: 6px;display: flex;justify-content: center;align-items: center;background-color: rgb(253, 217, 80);align-self: flex-end;z-index: 2;\"><br  \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-mpa-preserve-tpl-color=\"t\" data-mpa-template=\"t\" mpa-preserve=\"t\" mpa-from-tpl=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 5.95px;overflow-x: auto;white-space: nowrap;\"><span style=\"color: rgb(92, 99, 112);background: rgba(0, 0, 0, 0);display: inline;width: 267px;text-decoration: none solid rgb(92, 99, 112);font-weight: 400;font-style: italic;\">\/**<br mpa-from-tpl=\"t\"  \/>&nbsp;* Definition for singly-linked list.<br mpa-from-tpl=\"t\"  \/>&nbsp;* class ListNode {<br mpa-from-tpl=\"t\"  \/>&nbsp;* int val;<br mpa-from-tpl=\"t\"  \/>&nbsp;* ListNode next;<br mpa-from-tpl=\"t\"  \/>&nbsp;* ListNode(int x) {<br mpa-from-tpl=\"t\"  \/>&nbsp;* val = x;<br mpa-from-tpl=\"t\"  \/>&nbsp;* next = null;<br mpa-from-tpl=\"t\"  \/>&nbsp;* }<br mpa-from-tpl=\"t\"  \/>&nbsp;* }<br mpa-from-tpl=\"t\"  \/>&nbsp;*\/<\/span><br mpa-from-tpl=\"t\"  \/><span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">public<\/span>&nbsp;<span style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 108px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\"><span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 36px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">class<\/span>&nbsp;<span style=\"color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);display: inline;width: 58px;text-decoration: none solid rgb(230, 192, 123);font-weight: 400;font-style: normal;\">Solution<\/span>&nbsp;<\/span>{<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 282px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\"><span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">public<\/span>&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 51px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">boolean<\/span>&nbsp;<span style=\"color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 58px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;\">hasCycle<\/span><span style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 108px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">(ListNode head)<\/span>&nbsp;<\/span>{<br mpa-from-tpl=\"t\"  \/><br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ListNode fast = head;<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ListNode slow = head;<br mpa-from-tpl=\"t\"  \/><br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 36px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">while<\/span>(fast != <span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">null<\/span>&nbsp;&amp;&amp; fast.next != <span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">null<\/span>){<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fast = fast.next.next;<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slow = slow.next;<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 14px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">if<\/span>(slow == fast){<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">return<\/span>&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">true<\/span>;<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/><br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">return<\/span>&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 36px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">false<\/span>; <br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/>}<\/code><\/pre>\n<\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-top: 2px;padding-bottom: 2px;padding-left: 24px;outline: 0px;width: 677px;display: flex;align-items: center;justify-content: flex-start;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-bottom: -26px;margin-left: -21px;outline: 0px;display: flex;justify-content: center;align-items: center;width: 26px;height: 26px;background: rgb(245, 252, 255);border-width: 1px;border-style: solid;border-color: rgb(91, 158, 255);text-align: center;align-self: flex-start;z-index: 1;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(78, 150, 255);line-height: 26px;\">02<\/p>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;z-index: 1;border-bottom: 1px solid rgb(57, 160, 255);\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-right: 12px;padding-left: 12px;outline: 0px;text-align: center;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(57, 160, 255);line-height: 22px;\">Go&nbsp;\u4ee3\u7801\u5b9e\u73b0<br style=\"outline: 0px;\"  \/><\/p>\n<\/section>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-top: -4px;outline: 0px;width: 6px;height: 6px;display: flex;justify-content: center;align-items: center;background-color: rgb(253, 217, 80);align-self: flex-end;z-index: 2;\"><br  \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-mpa-preserve-tpl-color=\"t\" data-mpa-template=\"t\" mpa-preserve=\"t\" mpa-from-tpl=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 5.95px;overflow-x: auto;white-space: nowrap;\"><span style=\"color: rgb(92, 99, 112);background: rgba(0, 0, 0, 0);display: inline;width: 267px;text-decoration: none solid rgb(92, 99, 112);font-weight: 400;font-style: italic;\">\/**<br mpa-from-tpl=\"t\"  \/>&nbsp;* Definition for singly-linked list.<br mpa-from-tpl=\"t\"  \/>&nbsp;* type ListNode struct {<br mpa-from-tpl=\"t\"  \/>&nbsp;* Val int<br mpa-from-tpl=\"t\"  \/>&nbsp;* Next *ListNode<br mpa-from-tpl=\"t\"  \/>&nbsp;* }<br mpa-from-tpl=\"t\"  \/>&nbsp;*\/<\/span><br mpa-from-tpl=\"t\"  \/><br mpa-from-tpl=\"t\"  \/><span style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 246px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\"><span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">func<\/span>&nbsp;<span style=\"color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 58px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;\">hasCycle<\/span><span style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 116px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">(head *ListNode)<\/span>&nbsp;<span style=\"color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;\">bool<\/span><\/span>&nbsp;{<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;fast, slow := head, head<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 22px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">for<\/span>&nbsp;fast != <span style=\"color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);display: inline;width: 22px;text-decoration: none solid rgb(86, 182, 194);font-weight: 400;font-style: normal;\">nil<\/span>&nbsp;&amp;&amp; fast.Next != <span style=\"color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);display: inline;width: 22px;text-decoration: none solid rgb(86, 182, 194);font-weight: 400;font-style: normal;\">nil<\/span>&nbsp;{<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fast = fast.Next.Next<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slow = slow.Next<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 14px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">if<\/span>&nbsp;slow == fast {<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">return<\/span>&nbsp;<span style=\"color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(86, 182, 194);font-weight: 400;font-style: normal;\">true<\/span><br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">return<\/span>&nbsp;<span style=\"color: rgb(86, 182, 194);background: rgba(0, 0, 0, 0);display: inline;width: 36px;text-decoration: none solid rgb(86, 182, 194);font-weight: 400;font-style: normal;\">false<\/span>;<br mpa-from-tpl=\"t\"  \/>}<\/code><\/pre>\n<\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-top: 2px;padding-bottom: 2px;padding-left: 24px;outline: 0px;width: 677px;display: flex;align-items: center;justify-content: flex-start;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-bottom: -26px;margin-left: -21px;outline: 0px;display: flex;justify-content: center;align-items: center;width: 26px;height: 26px;background: rgb(245, 252, 255);border-width: 1px;border-style: solid;border-color: rgb(91, 158, 255);text-align: center;align-self: flex-start;z-index: 1;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(78, 150, 255);line-height: 26px;\">03<\/p>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;z-index: 1;border-bottom: 1px solid rgb(57, 160, 255);\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-right: 12px;padding-left: 12px;outline: 0px;text-align: center;\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(57, 160, 255);line-height: 22px;\">\u590d\u6742\u5ea6\u5206\u6790<\/p>\n<\/section>\n<\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-top: -4px;outline: 0px;width: 6px;height: 6px;display: flex;justify-content: center;align-items: center;background-color: rgb(253, 217, 80);align-self: flex-end;z-index: 2;\"><br mpa-from-tpl=\"t\" style=\"outline: 0px;\"  \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;text-indent: 0em;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u65f6\u95f4\u590d\u6742\u5ea6&nbsp;<em style=\"outline: 0px;\"><strong style=\"outline: 0px;\">O(N)<\/strong><\/em>\uff1a\u9700\u8981\u8bbf\u95ee\u94fe\u8868\u4e2d\u7684\u6bcf\u4e00\u4e2a\u8282\u70b9\uff0c\u65f6\u95f4\u590d\u6742\u5ea6\u4e3a\u94fe\u8868\u957f\u5ea6<\/span><span style=\"outline: 0px;letter-spacing: 1px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);font-variant-ligatures: no-common-ligatures;text-align: start;\">n<\/span><span style=\"outline: 0px;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;text-indent: 0em;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u3002<\/span><br style=\"outline: 0px;\"  \/><\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u7a7a\u95f4\u590d\u6742\u5ea6&nbsp;<em style=\"outline: 0px;\"><strong style=\"outline: 0px;\">O(1)<\/strong><\/em>\uff1a\u53ea\u9700\u8981\u8bb0\u5f55\u5feb\u6162\u6307\u9488\u7684\u4e24\u4e2a\u53d8\u91cf\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u4e3a\u5e38\u6570\u3002<\/span><\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"><br style=\"outline: 0px;\"  \/><\/p>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-right: 18px;outline: 0px;display: flex;align-items: center;justify-content: flex-end;width: 677px;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin-bottom: -22px;margin-left: -26px;outline: 0px;width: 30px;height: 34px;display: flex;justify-content: center;align-self: flex-start;z-index: 1;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"1.1333333333333333\"  data-w=\"60\" style=\"outline: 0px;display: block;box-sizing: border-box !important;width: 60px !important;visibility: visible !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043503835.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"1.1333333333333333\"  data-w=\"60\" style=\"outline: 0px;display: block;box-sizing: border-box !important;width: 60px !important;visibility: visible !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043503835.png\"  \/><\/noscript><\/section>\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"outline: 0px;text-align: center;\">\n<section data-mid=\"\" mpa-from-tpl=\"t\" style=\"padding-right: 10px;padding-left: 8px;outline: 0px;border-bottom: 1px solid rgb(179, 216, 254);\">\n<p data-mid=\"\" style=\"outline: 0px;font-size: 14px;font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;color: rgb(26, 76, 124);line-height: 20px;\">\u70b9\u4e2a<nobr data-mid=\"\" style=\"padding-right: 4px;padding-left: 4px;outline: 0px;\"  \/>\u5728\u770b<\/nobr>\u4f60\u6700\u597d\u770b<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 i\u4f59\u6570              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u4e00\u9053\u7b80\u5355\u9898\u3002 \u9898\u76ee\u6765\u81ea\uff1ahttps:\/\/leetcode.cn\/problems\/linked-list-cycle\/desc &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1514,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[22],"tags":[],"class_list":["post-1521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-22"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043458532-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043459803.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043458532-300x127.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043458532.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043459803.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043458532-300x127.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043458532.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043458532.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043459803.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043459803.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043500422.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043500422.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043500735.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043500735.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043501228.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043501228.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043502738.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043502738.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043503835.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043503835.png","id":"image11"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"\u7b97\u6cd5","post_date":"2023-06-19","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":279,"next_post_id":1561,"next_post_title":"\u3010\u7b97\u6cd5\u9898\u89e3\u30116.\u5408\u5e76\u4e24\u4e2a\u6709\u5e8f\u6570\u7ec4","previous_post_id":1464,"previous_post_title":"\u3010\u7b97\u6cd5\u9898\u89e3\u301118. \u65e0\u91cd\u590d\u5b57\u7b26\u7684\u6700\u957f\u5b50\u4e32","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1521"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1521\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/1514"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}