{"id":61446,"date":"2026-01-17T17:05:21","date_gmt":"2026-01-17T09:05:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/61446.html"},"modified":"2026-01-17T17:05:21","modified_gmt":"2026-01-17T09:05:21","slug":"%e7%ae%97%e6%b3%95%e8%ae%ad%e7%bb%83%e8%90%a5%e7%ac%ac%e5%9b%9b%e5%a4%a9%ef%bc%9a%e9%93%be%e8%a1%a8%e7%9b%b8%e5%85%b3%e9%87%8d%e7%82%b9%e7%b2%be%e8%ae%b2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/61446.html","title":{"rendered":"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929\uff1a\u94fe\u8868\u76f8\u5173\u91cd\u70b9\u7cbe\u8bb2"},"content":{"rendered":"<\/p>\n<h4>\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929|24. \u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9 \u300119.\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9\u3001\u9762\u8bd5\u9898 02.07. \u94fe\u8868\u76f8\u4ea4 \u3001142.\u73af\u5f62\u94fe\u8868II<\/h4>\n<ul>\n<li>\u6628\u65e5\u56de\u987e<\/li>\n<li>24.[\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9](https:\/\/leetcode.cn\/problems\/swap-nodes-in-pairs\/)<\/li>\n<li>\n<ul>\n<li>\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5<\/li>\n<li>\n<ul>\n<li>\u91cd\u70b9<\/li>\n<li>\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9c&#043;&#043;\u5b9e\u73b0<\/li>\n<li>\u5361\u54e5PS:\u8fd9\u91cc\u8fd8\u662f\u8bf4\u4e00\u4e0b&#xff0c;\u5927\u5bb6\u4e0d\u5fc5\u592a\u5728\u610f\u529b\u6263\u4e0a\u6267\u884c\u7528\u65f6&#xff0c;\u6253\u8d25\u591a\u5c11\u591a\u5c11\u7528\u6237&#xff0c;\u8fd9\u4e2a\u7edf\u8ba1\u4e0d\u51c6\u786e\u7684\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>19.[\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9](https:\/\/leetcode.cn\/problems\/remove-nth-node-from-end-of-list\/)<\/li>\n<li>\n<ul>\n<li>\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5<\/li>\n<li>\n<ul>\n<li>\u91cd\u70b9<\/li>\n<li>\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9c&#043;&#043;\u5b9e\u73b0&#xff08;\u5148\u68c0\u67e5\u8d8a\u754c&#xff0c;\u518d\u5b8c\u6210\u5feb\u6162\u6307\u9488\u64cd\u4f5c&#xff09;<\/li>\n<li>\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9c&#043;&#043;\u5b9e\u73b0&#xff08;\u76f4\u63a5\u5728\u53cc\u6307\u9488\u4e2d\u68c0\u67e5\u8d8a\u754c&#xff09;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>[\u9762\u8bd5\u9898 02.07. \u94fe\u8868\u76f8\u4ea4](https:\/\/leetcode.cn\/problems\/intersection-of-two-linked-lists-lcci\/)<\/li>\n<li>\n<ul>\n<li>\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5<\/li>\n<li>\n<ul>\n<li>\u91cd\u70b9<\/li>\n<li>\u94fe\u8868\u76f8\u4ea4c&#043;&#043;\u5b9e\u73b0<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>142.[\u73af\u5f62\u94fe\u8868II](https:\/\/leetcode.cn\/problems\/linked-list-cycle-ii\/)<\/li>\n<li>\n<ul>\n<li>\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5<\/li>\n<li>\n<ul>\n<li>\u91cd\u70b9<\/li>\n<li>\u73af\u5f62\u94fe\u8868IIc&#043;&#043;\u5b9e\u73b0<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u575a\u6301\u5c31\u662f\u80dc\u5229<\/li>\n<\/ul>\n<h2>\u6628\u65e5\u56de\u987e<\/h2>\n<ul>\n<li>\u94fe\u8868\u5b9a\u4e49&#xff0c;\u8981\u6e05\u6670\u4e14\u719f\u7ec3\u3002<\/li>\n<li>\u94fe\u8868\u64cd\u4f5c\u8282\u70b9\u65f6&#xff0c;\u62e5\u6709\u8282\u70b9\u5730\u5740&#xff08;\u4e5f\u5c31\u662f\u6307\u9488\u57df&#xff09;\u662f\u7b2c\u4e00\u8981\u52a1\u3002 \u4f7f\u7528\u5934\u8282\u70b9\u5df2\u77e5\u5730\u5740\u642d\u914d\u524d\u4e00\u8282\u70b9\u83b7\u53d6\u540e\u4e00\u8282\u70b9\u7684\u65b9\u6cd5\u5c31\u662f\u5728\u539f\u94fe\u8868\u4e0a\u64cd\u4f5c\u7684\u65b9\u6cd5\u3002 \u5b9a\u4e49\u4e00\u4e2a\u65b0\u7684\u5934\u8282\u70b9\u6307\u5411\u539f\u94fe\u8868\u5934\u8282\u70b9&#xff0c;\u5c06\u6240\u6709\u8282\u70b9\u7edf\u4e00\u5904\u7406\u5c31\u662f\u65b0\u5efa\u5934\u8282\u70b9\u7684\u65b9\u6cd5\u3002 \u4e24\u79cd\u65b9\u6cd5\u5404\u6709\u4f18\u52bf&#xff0c;\u5934\u8282\u70b9\u601d\u8def\u66f4\u4e3a\u7edf\u4e00&#xff0c;\u6b65\u9aa4\u4e5f\u4e0d\u590d\u6742&#xff0c;\u66f4\u63a8\u8350\u65b0\u5efa\u5934\u8282\u70b9\u8fd9\u79cd\u65b9\u6cd5\u5427&#xff01;<\/li>\n<li>\u9012\u5f52&#xff0c;\u6709\u5176\u4ed6\u65b9\u6cd5\u7684\u65f6\u5019\u4e0d\u7528\u6b7b\u78d5\u3002\u8981\u6b7b\u78d5\u6211\u4e5f\u6682\u65f6\u6ca1\u4ec0\u4e48\u597d\u529e\u6cd5&#xff0c;\u6162\u6162\u603b\u7ed3\u5427\u3002<\/li>\n<\/ul>\n<h2>24.\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9<\/h2>\n<h3>\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5<\/h3>\n<h4>\u91cd\u70b9<\/h4>\n<ul>\n<li>\u94fe\u8868\u8282\u70b9\u4e24\u4e24\u4ea4\u6362&#xff0c;\u4e00\u5b9a\u8981\u6e05\u695a\u6bcf\u4e00\u6b21\u7684\u5faa\u73af\u8d77\u59cb\u4f4d\u7f6e\u5728\u54ea&#xff01;&#xff01;&#xff01;<\/li>\n<li>1-&gt;2-&gt;3-&gt;4 \u8981\u53d8\u6210 2-&gt;1-&gt;4-&gt;3&#xff0c;\u624b\u52a8\u5148\u753b\u4e00\u4e0b\u8fc7\u7a0b\u3002<\/li>\n<\/ul>\n<h4>\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9c&#043;&#043;\u5b9e\u73b0<\/h4>\n<p>cpp<\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Solution<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">public<\/span><span class=\"token operator\">:<\/span><br \/>\n    ListNode<span class=\"token operator\">*<\/span> <span class=\"token function\">swapPairs<\/span><span class=\"token punctuation\">(<\/span>ListNode<span class=\"token operator\">*<\/span> head<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        ListNode <span class=\"token function\">dummy<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> cur <span class=\"token operator\">&#061;<\/span> <span class=\"token operator\">&amp;<\/span>dummy<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token comment\">\/\/\u8fd8\u662f\u65b0\u5efa\u5934\u8282\u70b9&#xff0c;\u4fbf\u4e8e\u7edf\u4e00\u64cd\u4f5c<\/span><br \/>\n        cur <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">&#061;<\/span> head<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>cur <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">!&#061;<\/span> <span class=\"token keyword\">nullptr<\/span> <span class=\"token operator\">&amp;&amp;<\/span> cur <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">!&#061;<\/span> <span class=\"token keyword\">nullptr<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/while\u5faa\u73af\u6761\u4ef6\u8fd8\u662f\u6700\u540e\u603b\u7ed3<\/span><br \/>\n        <span class=\"token comment\">\/\/\u4e3a\u4ec0\u4e48\u51fd\u6570\u4f53\u91cc\u6ca1\u6709\u7528\u5230cur -&gt; next -&gt; next -&gt; next&#xff0c;\u5374\u8981\u6c42cur -&gt; next -&gt; next !&#061; nullptr&#xff1f;<\/span><br \/>\n        <span class=\"token comment\">\/\/\u56e0\u4e3a\u522b\u770b\u8868\u9762\u6ca1\u6709\u7528\u5230&#xff0c;cur -&gt; next &#061; cur -&gt; next -&gt; next;\u8fd9\u4e00\u6b65\u5df2\u7ecf\u6539\u53d8\u4e86\u6307\u5411&#xff0c;\u4e4b\u540e\u7684cur -&gt; next -&gt; next &#061; temp1;\u5176\u5b9e\u662f\u8fdb\u5165while\u51fd\u6570\u4f53\u7684cur -&gt; next -&gt; next -&gt; next\u3002\u601d\u8003\u601d\u8003\u3002<\/span><br \/>\n            ListNode<span class=\"token operator\">*<\/span> temp1 <span class=\"token operator\">&#061;<\/span> cur <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            cur <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">&#061;<\/span> cur <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            ListNode<span class=\"token operator\">*<\/span> temp2 <span class=\"token operator\">&#061;<\/span> cur <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            cur <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">&#061;<\/span> temp1<span class=\"token punctuation\">;<\/span><br \/>\n            temp1 <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">&#061;<\/span> temp2<span class=\"token punctuation\">;<\/span><br \/>\n            cur <span class=\"token operator\">&#061;<\/span> temp1<span class=\"token punctuation\">;<\/span><span class=\"token comment\">\/\/cur\u7684\u4f4d\u7f6e\u8981\u6e05\u695a&#xff0c;\u5faa\u73af\u7684\u8d77\u70b9\u8981\u660e\u786e\u3002<\/span><br \/>\n            <span class=\"token comment\">\/\/\u4e0a\u9762\u7684\u6b65\u9aa4\u6ca1\u6709\u5177\u4f53\u7684\u5199\u6cd5&#xff0c;\u4f46\u662f\u5c31\u662f\u6709\u4e00\u70b9&#xff0c;\u4e0d\u80fd\u4e22\u5931\u54ea\u6015\u4e00\u4e2a\u8282\u70b9\u7684\u5730\u5740\u3002<\/span><br \/>\n            <span class=\"token comment\">\/\/\u6709\u4e86\u5730\u5740&#xff0c;\u94fe\u8868\u8282\u70b9\u600e\u4e48\u90fd\u80fd\u64cd\u4f5c\u3002<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> dummy<span class=\"token punctuation\">.<\/span>next<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>\u5361\u54e5PS:\u8fd9\u91cc\u8fd8\u662f\u8bf4\u4e00\u4e0b&#xff0c;\u5927\u5bb6\u4e0d\u5fc5\u592a\u5728\u610f\u529b\u6263\u4e0a\u6267\u884c\u7528\u65f6&#xff0c;\u6253\u8d25\u591a\u5c11\u591a\u5c11\u7528\u6237&#xff0c;\u8fd9\u4e2a\u7edf\u8ba1\u4e0d\u51c6\u786e\u7684\u3002<\/h4>\n<p>\u5148\u5b8c\u6210\u518d\u5b8c\u7f8e&#xff0c;\u6bd5\u7adf\u662f\u521a\u5f00\u59cb\u561b\u3002\u6700\u540e\u5168\u90e8\u5b66\u5b8c&#xff0c;\u60f3\u7cbe\u8fdb&#xff0c;\u56de\u8fc7\u5934\u6765\u5e26\u590d\u4e60&#xff0c;\u5e26\u63d0\u5347&#xff0c;\u4e00\u7f51\u6253\u5c3d\u3002<\/p>\n<h2>19.\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9<\/h2>\n<h3>\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5<\/h3>\n<h4>\u91cd\u70b9<\/h4>\n<ul>\n<li>\u53cc\u6307\u9488&#xff0c;\u4ed6\u53c8\u6765\u4e86\u3002 \u5feb\u6307\u9488\u5148\u8d70&#xff0c;\u5feb\u6162\u6307\u9488\u4fdd\u6301\u56fa\u5b9a\u8ddd\u79bb&#xff0c;\u518d\u540c\u6b65\u79fb\u52a8&#xff0c;\u627e\u5230\u76ee\u6807\u4f4d\u7f6e\u3002<\/li>\n<li>\u589e\u5220\u8282\u70b9&#xff0c;\u6700\u597d\u662f\u7528\u524d\u4e00\u8282\u70b9\u6765\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<h4>\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9c&#043;&#043;\u5b9e\u73b0&#xff08;\u5148\u68c0\u67e5\u8d8a\u754c&#xff0c;\u518d\u5b8c\u6210\u5feb\u6162\u6307\u9488\u64cd\u4f5c&#xff09;<\/h4>\n<p>cpp<\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Solution<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">public<\/span><span class=\"token operator\">:<\/span><br \/>\n    ListNode<span class=\"token operator\">*<\/span> <span class=\"token function\">removeNthFromEnd<\/span><span class=\"token punctuation\">(<\/span>ListNode<span class=\"token operator\">*<\/span> head<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">int<\/span> n<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        ListNode <span class=\"token function\">dummy<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> cur <span class=\"token operator\">&#061;<\/span> <span class=\"token operator\">&amp;<\/span>dummy<span class=\"token punctuation\">;<\/span><br \/>\n        cur <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">&#061;<\/span> head<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">int<\/span> count <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>cur <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">!&#061;<\/span> <span class=\"token keyword\">nullptr<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            cur <span class=\"token operator\">&#061;<\/span> cur <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            count<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">if<\/span><span class=\"token punctuation\">(<\/span>n <span class=\"token operator\">&lt;&#061;<\/span> <span class=\"token number\">0<\/span> <span class=\"token operator\">||<\/span> n <span class=\"token operator\">&gt;<\/span> count<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">return<\/span> head<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token comment\">\/\/\u4ee5\u4e0a\u4ee3\u7801\u662f\u68c0\u67e5n\u7684\u5408\u6cd5\u6027&#xff0c;\u9632\u6b62\u8d8a\u754c&#xff0c;\u4e5f\u9632\u6b62\u8bef\u5220<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> slow <span class=\"token operator\">&#061;<\/span> <span class=\"token operator\">&amp;<\/span>dummy<span class=\"token punctuation\">;<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> fast <span class=\"token operator\">&#061;<\/span> slow<span class=\"token punctuation\">;<\/span><br \/>\n        n<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token comment\">\/\/\u52a0\u4e00\u662f\u56e0\u4e3a\u8981\u60f3\u5220\u9664\u4e00\u4e2a\u8282\u70b9&#xff0c;\u9700\u8981\u4f7f\u7528\u524d\u4e00\u4e2a\u7ed3\u70b9\u6765\u6267\u884c\u83b7\u5f97\u8be5\u8282\u70b9\u4ee5\u53ca\u8df3\u8fc7\u8be5\u8282\u70b9\u94fe\u63a5\u8be5\u8282\u70b9\u4e4b\u540e\u8282\u70b9\u7684\u64cd\u4f5c<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>n<span class=\"token operator\">&#8212;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            fast <span class=\"token operator\">&#061;<\/span> fast <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token comment\">\/\/\u8fd9\u4e2awhile\u5faa\u73af\u786e\u5b9a\u5feb\u6162\u6307\u9488\u4e4b\u95f4\u7684\u56fa\u5b9a\u6b65\u957f<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>fast <span class=\"token operator\">!&#061;<\/span> <span class=\"token keyword\">nullptr<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            fast <span class=\"token operator\">&#061;<\/span> fast <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            slow <span class=\"token operator\">&#061;<\/span> slow <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token comment\">\/\/\u540c\u65f6\u79fb\u52a8&#xff0c;\u4fdd\u6301\u5dee\u8ddd&#xff0c;\u77e5\u9053\u5feb\u6307\u9488\u8d70\u5230\u7a7a<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> temp <span class=\"token operator\">&#061;<\/span> slow <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n        slow <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">&#061;<\/span> slow <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">delete<\/span> temp<span class=\"token punctuation\">;<\/span><br \/>\n        temp <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">nullptr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> dummy<span class=\"token punctuation\">.<\/span>next<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9c&#043;&#043;\u5b9e\u73b0&#xff08;\u76f4\u63a5\u5728\u53cc\u6307\u9488\u4e2d\u68c0\u67e5\u8d8a\u754c&#xff09;<\/h4>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Solution<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">public<\/span><span class=\"token operator\">:<\/span><br \/>\n    ListNode<span class=\"token operator\">*<\/span> <span class=\"token function\">removeNthFromEnd<\/span><span class=\"token punctuation\">(<\/span>ListNode<span class=\"token operator\">*<\/span> head<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">int<\/span> n<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">!<\/span>head <span class=\"token operator\">||<\/span> n <span class=\"token operator\">&lt;&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">return<\/span> head<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/\u7a7a\u6307\u9488\u4e0d\u8981\u6d6a\u8d39\u5f00\u9500&#xff0c;\u5148\u884c\u5904\u7406<\/span><br \/>\n        ListNode <span class=\"token function\">dummy<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> slow <span class=\"token operator\">&#061;<\/span> <span class=\"token operator\">&amp;<\/span>dummy<span class=\"token punctuation\">;<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> fast <span class=\"token operator\">&#061;<\/span> slow<span class=\"token punctuation\">;<\/span><br \/>\n        slow <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">&#061;<\/span> head<span class=\"token punctuation\">;<\/span><br \/>\n        n<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token comment\">\/\/\u52a0\u4e00\u662f\u56e0\u4e3a\u8981\u60f3\u5220\u9664\u4e00\u4e2a\u8282\u70b9&#xff0c;\u9700\u8981\u4f7f\u7528\u524d\u4e00\u4e2a\u7ed3\u70b9\u6765\u6267\u884c\u83b7\u5f97\u8be5\u8282\u70b9\u4ee5\u53ca\u8df3\u8fc7\u8be5\u8282\u70b9\u94fe\u63a5\u8be5\u8282\u70b9\u4e4b\u540e\u8282\u70b9\u7684\u64cd\u4f5c<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>n<span class=\"token operator\">&#8212;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/\u6b63\u5e38\u8303\u56f4\u5185\u904d\u5386\u7ed3\u675f&#xff0c;\u800c\u4e0d\u662f\u56e0\u4e3a if \u8df3\u51fa&#xff0c;\u6b64\u65f6 n &#061; -1\u3002<\/span><br \/>\n            fast <span class=\"token operator\">&#061;<\/span> fast <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token keyword\">if<\/span><span class=\"token punctuation\">(<\/span>fast <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token keyword\">nullptr<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\">\/\/\u6307\u5411nullptr&#xff0c;\u4e0d\u518d\u53c2\u4e0e\u5faa\u73af&#xff0c;\u76f4\u63a5\u8df3\u51fa&#xff0c;\u907f\u514d\u8d8a\u754c<\/span><br \/>\n            <span class=\"token comment\">\/\/\u82e5\u8df3\u51fa&#xff0c;\u5219\u6ca1\u6709\u6700\u540e\u4e00\u6b21\u5faa\u73af\u6761\u4ef6\u7684\u5224\u65ad&#xff0c;\u5faa\u73af\u7ed3\u675f\u662fn &#061; 0&#xff0c;\u800c\u4e0d\u662f-1\u3002<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">if<\/span><span class=\"token punctuation\">(<\/span>n <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/\u4e3a\u4ec0\u4e48\u662fn &gt; 0?<\/span><br \/>\n        <span class=\"token comment\">\/\/\u56e0\u4e3a\u6709\u5728\u4e0a\u9762while\u5faa\u73af\u7ed3\u675f\u7684\u65f6\u5019&#xff0c;\u6709\u4e09\u79cd\u60c5\u51b5<\/span><br \/>\n        <span class=\"token comment\">\/\/1. n &#061;&#061; -1,fast !&#061; nullptr\u6b63\u5e38\u60c5\u51b5&#xff0c;n&#043;1 \u6b21\u5faa\u73af\u540e\u6ca1\u6709\u8d8a\u754c<\/span><br \/>\n        <span class=\"token comment\">\/\/2. n &#061;&#061; 0,fast &#061;&#061; nullptr\u6b63\u5e38\u60c5\u51b5,n&#043;1 \u6b21\u5faa\u73af\u540e\u6b63\u597dfast\u6307\u9488\u6307\u5411nullptr<\/span><br \/>\n        <span class=\"token comment\">\/\/3. n !&#061; 0,fast &#061;&#061; nullptr\u5faa\u73af\u6b21\u6570\u8fd8\u6ca1\u6709\u7ed3\u675f n &gt; 0&#xff0c;\u662f\u56e0\u4e3a\u8981\u8d8a\u754c\u63d0\u524d\u8df3\u51fa&#xff0c;\u8bf4\u660e\u8303\u56f4\u8d85\u51fa&#xff0c;\u4e0d\u6267\u884c\u5220\u9664<\/span><br \/>\n        <span class=\"token comment\">\/\/1 \u662f\u6b63\u5e38\u5faa\u73af\u7ed3\u675f&#xff0c;\u800c2 &#xff0c;3\u662f\u56e0\u4e3afast\u6307\u5411nullptr\u5148\u884c\u8df3\u51fa<\/span><br \/>\n            std<span class=\"token double-colon punctuation\">::<\/span>cout <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#034;out of the range&#034;<\/span> <span class=\"token operator\">&lt;&lt;<\/span> std<span class=\"token double-colon punctuation\">::<\/span>endl<span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token keyword\">return<\/span> head<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token comment\">\/\/\u4ee5\u4e0a\u662f\u68c0\u67e5\u8d8a\u754c&#xff0c;\u4e0b\u9762\u662f\u6b63\u5e38\u5220\u9664<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>fast <span class=\"token operator\">!&#061;<\/span> <span class=\"token keyword\">nullptr<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            slow <span class=\"token operator\">&#061;<\/span> slow <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            fast <span class=\"token operator\">&#061;<\/span> fast <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> temp <span class=\"token operator\">&#061;<\/span> slow <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n        slow <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">&#061;<\/span> slow <span class=\"token operator\">-&gt;<\/span> next <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">delete<\/span> temp<span class=\"token punctuation\">;<\/span><br \/>\n        temp <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">nullptr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> dummy<span class=\"token punctuation\">.<\/span>next<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u770b\u4e86\u5361\u54e5\u9898\u89e3\u4ee5\u53ca\u529b\u6263\u9898\u89e3&#xff0c;\u6ca1\u6709\u8ba8\u8bba\u8d8a\u754c\u60c5\u51b5\u3002\u5927\u5bb6\u914c\u60c5\u81ea\u5df1\u7ec3\u4e60\u3002<\/li>\n<li>\u68c0\u67e5\u8fc7\u662f\u5bf9\u7684&#xff0c;\u5927\u5bb6\u653e\u5fc3\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<h2>\u9762\u8bd5\u9898 02.07. \u94fe\u8868\u76f8\u4ea4<\/h2>\n<h3>\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5<\/h3>\n<h4>\u91cd\u70b9<\/h4>\n<ul>\n<li>\u552f\u4e00\u91cd\u70b9&#xff0c;\u4e3a\u4ec0\u4e48\u8981\u4ece\u540e\u5bf9\u9f50\u957f\u5ea6&#xff0c;\u518d\u4f9d\u6b21\u5bf9\u6bd4&#xff1f;<\/li>\n<li>\u56e0\u4e3a\u6307\u9488\u6307\u5411\u662f\u552f\u4e00\u786e\u5b9a\u7684&#xff0c;\u4e0d\u5b58\u5728\u4e24\u6761\u94fe\u8868\u5148\u76f8\u4ea4\u540e\u53c8\u5206\u5f00\u7684\u60c5\u51b5&#xff0c;\u4e0d\u7ba1\u4ece\u54ea\u4e00\u4e2a\u8282\u70b9\u90fd\u53ea\u80fd\u6307\u5411\u552f\u4e00\u7ed3\u679c<\/li>\n<\/ul>\n<h4>\u94fe\u8868\u76f8\u4ea4c&#043;&#043;\u5b9e\u73b0<\/h4>\n<p>cpp<\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Solution<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">public<\/span><span class=\"token operator\">:<\/span><br \/>\n    ListNode <span class=\"token operator\">*<\/span><span class=\"token function\">getIntersectionNode<\/span><span class=\"token punctuation\">(<\/span>ListNode <span class=\"token operator\">*<\/span>headA<span class=\"token punctuation\">,<\/span> ListNode <span class=\"token operator\">*<\/span>headB<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/\u5148\u7edf\u8ba1\u4e24\u6761\u94fe\u8868\u957f\u5ea6&#xff0c;\u518d\u4ece\u540e\u5bf9\u9f50&#xff0c;\u5f00\u59cb\u6bd4\u8f83<\/span><br \/>\n        <span class=\"token keyword\">int<\/span> countA <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">int<\/span> countB <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> curA <span class=\"token operator\">&#061;<\/span> headA<span class=\"token punctuation\">;<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> curB <span class=\"token operator\">&#061;<\/span> headB<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token comment\">\/\/\u8fd9\u91cc\u4e3a\u4ec0\u4e48\u53c8\u4e0d\u7528\u5934\u8282\u70b9\u4e86&#xff1f;<\/span><br \/>\n        <span class=\"token comment\">\/\/\u65b9\u6cd5\u4f7f\u7528\u8981\u56e0\u5730\u5236\u5b9c&#xff0c;\u8fd9\u91cc\u53ea\u662f\u904d\u5386\u67e5\u8be2&#xff0c;\u4e0d\u6d89\u53ca\u94fe\u8868\u7684\u589e\u5220&#xff0c;\u4e0d\u9700\u8981\u524d\u4e00\u8282\u70b9\u3002<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>curA<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            curA <span class=\"token operator\">&#061;<\/span> curA <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            countA<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>curB<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            curB <span class=\"token operator\">&#061;<\/span> curB <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            countB<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">if<\/span><span class=\"token punctuation\">(<\/span>countA <span class=\"token operator\">&gt;<\/span> countB<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token function\">swap<\/span><span class=\"token punctuation\">(<\/span>countA<span class=\"token punctuation\">,<\/span> countB<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token function\">swap<\/span><span class=\"token punctuation\">(<\/span>headA<span class=\"token punctuation\">,<\/span> headB<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token comment\">\/\/\u8fd9\u4e24\u4e2aswap\u53ea\u662f\u4ea4\u6362\u6570\u636e\u7684\u5b57\u9762\u5185\u5bb9&#xff0c;\u6ca1\u6709\u4e00\u70b9\u70b9\u522b\u7684\u4f5c\u7528<\/span><br \/>\n            <span class=\"token comment\">\/\/\u53ea\u662f\u4e3a\u4e86\u7edf\u4e00\u5904\u7406\u903b\u8f91<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        curA <span class=\"token operator\">&#061;<\/span> headA<span class=\"token punctuation\">;<\/span><br \/>\n        curB <span class=\"token operator\">&#061;<\/span> headB<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">int<\/span> count <span class=\"token operator\">&#061;<\/span> countB <span class=\"token operator\">&#8211;<\/span> countA<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>count<span class=\"token operator\">&#8212;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            curB <span class=\"token operator\">&#061;<\/span> curB <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>curA<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token keyword\">if<\/span><span class=\"token punctuation\">(<\/span>curA <span class=\"token operator\">&#061;&#061;<\/span> curB<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token keyword\">return<\/span> curA<span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n            curA <span class=\"token operator\">&#061;<\/span> curA <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n            curB <span class=\"token operator\">&#061;<\/span> curB <span class=\"token operator\">-&gt;<\/span> next<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token keyword\">nullptr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h2>142.\u73af\u5f62\u94fe\u8868II<\/h2>\n<h3>\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5<\/h3>\n<h4>\u91cd\u70b9<\/h4>\n<ul>\n<li>\u73af\u5f62\u94fe\u8868\u7684\u4ee3\u7801\u5199\u51fa\u6765\u4e0d\u957f&#xff0c;\u4e5f\u6ca1\u6709\u7279\u522b\u7684\u8ba8\u8bba&#xff0c;\u6ce8\u610f&#xff0c;\u66f4\u91cd\u8981\u7684\u662f\u8fd9\u4e2a\u6570\u5b66\u73b0\u8c61\u7684\u7406\u89e3\u3002<\/li>\n<li>\u53cc\u6307\u9488&#xff0c;\u5df2\u7ecf\u662f\u57fa\u64cd\u5566~~~~\u3002<\/li>\n<li>\u7b2c\u4e00\u6b21\u5faa\u73af&#xff0c;\u6162\u6307\u9488\u4e00\u6b21\u4e00\u6b65&#xff0c;\u5feb\u6307\u9488\u4e00\u6b21\u4e24\u6b65&#xff0c;\u6709\u60c5\u4eba\u7ec8\u6210\u7737\u5c5e\u3002\u5982\u679c\u662f\u4e2a\u5708&#xff0c;\u4e24\u4e2a\u6307\u9488\u603b\u4f1a\u76f8\u9047\u3002&#xff08;\u5f88\u597d\u7406\u89e3&#xff09;<\/li>\n<li>\u7b2c\u4e8c\u6b21\u884c\u52a8&#xff0c;\u4e00\u4e2a\u6307\u9488\u4ece\u5934\u5f00\u59cb&#xff0c;\u4e00\u4e2a\u6307\u9488\u4ece\u76f8\u9047\u70b9\u5f00\u59cb&#xff0c;\u540c\u6b65\u4e00\u6b21\u4e00\u6b65\u79fb\u52a8\u3002\u76f8\u9047\u4e86&#xff0c;\u5c31\u662f\u8d77\u70b9\u3002&#xff08;\u4e3a\u4ec0\u4e48&#xff01;&#xff01;&#xff01;&#xff09;<\/li>\n<li>\u4ece\u5934\u5f00\u59cb\u634b&#xff0c;\u5feb\u6162\u6307\u9488\u6309\u81ea\u5df1\u7684\u8282\u594f\u5f00\u59cb\u8fd0\u52a8\u5230\u5faa\u73af\u4e86n\u6b21\u518d\u6b21\u76f8\u9047&#xff08;\u5982\u679c\u6709\u73af\u7684\u8bdd&#xff0c;\u6ca1\u73af\u76f4\u63a5\u9000\u51fa&#xff09;\u3002<\/li>\n<li>\u4e3a\u4ec0\u4e48\u80fd\u518d\u6b21\u76f8\u9047&#xff1f;\u80fd\u76f8\u9047\u7684\u539f\u56e0\u662f\u56e0\u4e3a\u6709\u73af&#xff0c;\u5feb\u6307\u9488\u8d70\u8fc7\u76842n &#8211; \u6162\u6307\u9488\u8d70\u8fc7\u7684n &#061; m\u4e2a\u5b8c\u6574\u7684\u73af&#xff08;\u60f3\u4e00\u4e0b&#xff0c;\u8fd9\u4e00\u6b65\u5f88\u5bb9\u6613\u5c31\u7406\u89e3\u4e86\u3002\u8fd9\u4e00\u6b65\u53ea\u662f\u8bf4\u660e\u76f8\u5dee\u7684\u90fd\u662f\u73af\u5f62\u8282\u70b9\u4e2a\u6570\u7684\u6574\u6570\u500d&#xff09;\u3002<\/li>\n<li>\u6211\u4eec\u5c06\u8fd9\u4e2a\u73af\u5f62\u94fe\u8868\u5206\u6210\u4e09\u90e8\u5206\u3002\u7b2c\u4e00&#xff0c;\u672a\u8fdb\u5165\u73af\u5f62\u7684x\u957f\u5ea6&#xff1b;\u7b2c\u4e8c&#xff0c;\u4ece\u94fe\u8868\u73af\u5f62\u8d77\u70b9\u5230\u76f8\u9047\u70b9\u7684y\u957f\u5ea6&#xff1b;\u4ee5\u53ca\u7b2c\u4e09&#xff0c;\u4ece\u76f8\u9047\u70b9\u540c\u65b9\u5411\u79fb\u52a8\u518d\u6b21\u5230\u8fbe\u94fe\u8868\u73af\u5f62\u8d77\u70b9\u7684z\u957f\u5ea6\u3002<\/li>\n<li>\u6162\u6307\u9488&#xff1a;x &#043; ?( z &#043; y) &#043; y &#061; n&#xff1b;\u5c31\u662fx\u957f\u5ea6\u52a0\u4e0a\u8ffd\u9010\u7684 &#xff1f;\u5708&#xff0c;\u518d\u52a0\u6700\u540e\u6ca1\u8fbe\u5230\u6ee1\u5708\u7684z\u3002<\/li>\n<li>\u5feb\u6307\u9488&#xff1a;x &#043; (? &#043; m)( z &#043; y) &#043; y &#061; 2n&#xff1b;\u5c31\u662f\u5feb\u6307\u9488\u6bd4\u6162\u6307\u9488\u591a\u8d70\u7684m\u5708\u52a0\u4e0a\u6162\u6307\u9488\u8d70\u8fc7\u7684\u957f\u5ea6\u3002&#xff08;&#xff1f;\u4ee3\u8868\u6162\u6307\u9488\u5728\u73af\u5185\u8d70\u8fc7\u7684\u6574\u5708\u6570&#xff09;<\/li>\n<li>\u8fd9\u5176\u5b9e\u4e3b\u8981\u662f\u4e2a\u6570\u5b66\u9898<\/li>\n<li>\u6240\u4ee5\u6700\u540e (x &#043; ?( z &#043; y) &#043; y) * 2 &#061; x &#043; (? &#043; m)( z &#043; y) &#043; y&#xff1b;\u6700\u540e\u4e24\u8fb9\u7ea6\u4e00\u4e0b\u5c31\u662f x &#043; y &#061; (m &#8211; ?)( z &#043; y ) &#8212;&#8211;&gt;x &#061; (m &#8211; ? -1)(z &#043; y) &#043; z&#xff1b;\u8fd8\u8bb0\u5f97x\u4ee3\u8868\u4ec0\u4e48\u5417&#xff1f;x\u5c31\u662f\u4ece\u94fe\u8868\u5f00\u5934\u5230\u73af\u5f62\u5f00\u59cb\u7684\u4f4d\u7f6e\u3002(m &#8211; ? -1)\u8fd9\u4e2a\u6570\u5b57\u4e0d\u7ba1\u6709\u591a\u590d\u6742&#xff0c;\u4ed6\u53ea\u662f\u4ee3\u8868\u6574\u5708\u7684\u79fb\u52a8\u3002\u8fd9\u4e2a\u7cfb\u6570\u7684\u51fa\u73b0\u53ea\u662f\u8bf4\u660e\u76f8\u9047\u70b9\u51fa\u53d1\u7684\u6307\u9488\u5728\u4e00\u5708\u4e00\u5708\u5730\u56de\u5230\u76f8\u9047\u70b9&#xff0c;\u800c\u4ece\u94fe\u8868\u5934\u8282\u70b9\u51fa\u53d1\u7684\u6307\u9488\u662f\u5728\u8d70\u8fc7 x &#8211; z &#061; (m &#8211; ? -1)(z &#043; y) \u8fd9\u4e00\u6bb5\u957f\u5ea6\u3002\u6700\u540e\u4e24\u4e2a\u6307\u9488\u76f8\u8ddd\u94fe\u8868\u73af\u5f62\u8d77\u59cb\u70b9\u90fd\u662fz\u7684\u957f\u5ea6&#xff0c;\u8fd9\u65f6\u4e00\u8d77\u79fb\u52a8&#xff0c;\u76f8\u9047\u7684\u70b9\u5c31\u662f\u73af\u5f62\u7684\u5165\u53e3\u4f4d\u7f6e\u3002<\/li>\n<\/ul>\n<h4>\u73af\u5f62\u94fe\u8868IIc&#043;&#043;\u5b9e\u73b0<\/h4>\n<p>cpp<\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Solution<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">public<\/span><span class=\"token operator\">:<\/span><br \/>\n    ListNode <span class=\"token operator\">*<\/span><span class=\"token function\">detectCycle<\/span><span class=\"token punctuation\">(<\/span>ListNode <span class=\"token operator\">*<\/span>head<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/\u4ee3\u7801\u5b9e\u73b0\u6ca1\u4ec0\u4e48\u7279\u522b&#xff0c;\u601d\u8def\u7406\u901a\u5c31\u5f88\u597d\u5b9e\u73b0<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> slow <span class=\"token operator\">&#061;<\/span> head<span class=\"token punctuation\">;<\/span><br \/>\n        ListNode<span class=\"token operator\">*<\/span> fast <span class=\"token operator\">&#061;<\/span> head<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>fast <span class=\"token operator\">!&#061;<\/span> <span class=\"token constant\">NULL<\/span> <span class=\"token operator\">&amp;&amp;<\/span> fast<span class=\"token operator\">-&gt;<\/span>next <span class=\"token operator\">!&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            slow <span class=\"token operator\">&#061;<\/span> slow<span class=\"token operator\">-&gt;<\/span>next<span class=\"token punctuation\">;<\/span><br \/>\n            fast <span class=\"token operator\">&#061;<\/span> fast<span class=\"token operator\">-&gt;<\/span>next<span class=\"token operator\">-&gt;<\/span>next<span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>slow <span class=\"token operator\">&#061;&#061;<\/span> fast<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n                ListNode<span class=\"token operator\">*<\/span> index1 <span class=\"token operator\">&#061;<\/span> fast<span class=\"token punctuation\">;<\/span><br \/>\n                ListNode<span class=\"token operator\">*<\/span> index2 <span class=\"token operator\">&#061;<\/span> head<span class=\"token punctuation\">;<\/span><br \/>\n                <span class=\"token keyword\">while<\/span> <span class=\"token punctuation\">(<\/span>index1 <span class=\"token operator\">!&#061;<\/span> index2<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n                    index1 <span class=\"token operator\">&#061;<\/span> index1<span class=\"token operator\">-&gt;<\/span>next<span class=\"token punctuation\">;<\/span><br \/>\n                    index2 <span class=\"token operator\">&#061;<\/span> index2<span class=\"token operator\">-&gt;<\/span>next<span class=\"token punctuation\">;<\/span><br \/>\n                <span class=\"token punctuation\">}<\/span><br \/>\n                <span class=\"token keyword\">return<\/span> index2<span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h2>\u575a\u6301\u5c31\u662f\u80dc\u5229<\/h2>\n<table>\n<tr>\u65e5\u671f\u5929\u6b21\u9898\u76ee<\/tr>\n<tbody>\n<tr>\n<td>01-14<\/td>\n<td>1<\/td>\n<td>704\u300127\u3001977<\/td>\n<\/tr>\n<tr>\n<td>01-15<\/td>\n<td>2<\/td>\n<td>209\u300159 &#xff08;&#043; 2&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>01-16<\/td>\n<td>3<\/td>\n<td>203\u3001707\u3001206<\/td>\n<\/tr>\n<tr>\n<td>01-17<\/td>\n<td>4<\/td>\n<td>24 \u300119\u3001\u9762\u8bd5\u9898 02.07 \u3001142<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li class=\"task-list-item\"> \u7b2c\u4e00\u5929&#xff0c;\u641e\u5b9a&#xff01;<\/li>\n<li class=\"task-list-item\"> \u7b2c\u4e8c\u5929&#xff0c;\u641e\u5b9a&#xff01;<\/li>\n<li class=\"task-list-item\"> \u7b2c\u4e09\u5929&#xff0c;\u641e\u5b9a&#xff01;<\/li>\n<li class=\"task-list-item\"> \u7b2c\u56db\u5929&#xff0c;\u641e\u5b9a&#xff01;<\/li>\n<\/ul>\n<p>  author<\/p>\n<dd>\n  \u8f69\n <\/dd>\n","protected":false},"excerpt":{"rendered":"<p>\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929|24. \u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9 \u300119.\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9\u3001\u9762\u8bd5\u9898 02.07. \u94fe\u8868\u76f8\u4ea4 \u3001142.\u73af\u5f62\u94fe\u8868II\u6628\u65e5\u56de\u987e24.[\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9](https:\/\/leetcode.cn\/problems\/swap-nodes-in-pairs\/)\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5\u91cd\u70b9\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9c\u5b9e\u73b0\u5361\u54e5PS:\u8fd9\u91cc\u8fd8\u662f\u8bf4\u4e00\u4e0b&#xff0c;\u5927\u5bb6\u4e0d\u5fc5\u592a\u5728\u610f\u529b\u6263\u4e0a\u6267\u884c\u7528\u65f6&#xff0c;\u6253\u8d25\u591a\u5c11\u591a\u5c11\u7528\u6237&#xff0c;\u8fd9\u4e2a\u7edf\u8ba1\u4e0d\u51c6\u786e\u7684\u300219.[\u5220\u9664\u94fe\u8868<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1813,427,2640],"topic":[],"class_list":["post-61446","post","type-post","status-publish","format-standard","hentry","category-server","tag-1813","tag-427","tag-2640"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929\uff1a\u94fe\u8868\u76f8\u5173\u91cd\u70b9\u7cbe\u8bb2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/61446.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929\uff1a\u94fe\u8868\u76f8\u5173\u91cd\u70b9\u7cbe\u8bb2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929|24. \u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9 \u300119.\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9\u3001\u9762\u8bd5\u9898 02.07. \u94fe\u8868\u76f8\u4ea4 \u3001142.\u73af\u5f62\u94fe\u8868II\u6628\u65e5\u56de\u987e24.[\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9](https:\/\/leetcode.cn\/problems\/swap-nodes-in-pairs\/)\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5\u91cd\u70b9\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9c\u5b9e\u73b0\u5361\u54e5PS:\u8fd9\u91cc\u8fd8\u662f\u8bf4\u4e00\u4e0b&#xff0c;\u5927\u5bb6\u4e0d\u5fc5\u592a\u5728\u610f\u529b\u6263\u4e0a\u6267\u884c\u7528\u65f6&#xff0c;\u6253\u8d25\u591a\u5c11\u591a\u5c11\u7528\u6237&#xff0c;\u8fd9\u4e2a\u7edf\u8ba1\u4e0d\u51c6\u786e\u7684\u300219.[\u5220\u9664\u94fe\u8868\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/61446.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-17T09:05:21+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61446.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/61446.html\",\"name\":\"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929\uff1a\u94fe\u8868\u76f8\u5173\u91cd\u70b9\u7cbe\u8bb2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-17T09:05:21+00:00\",\"dateModified\":\"2026-01-17T09:05:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/61446.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/61446.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61446.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929\uff1a\u94fe\u8868\u76f8\u5173\u91cd\u70b9\u7cbe\u8bb2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929\uff1a\u94fe\u8868\u76f8\u5173\u91cd\u70b9\u7cbe\u8bb2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/61446.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929\uff1a\u94fe\u8868\u76f8\u5173\u91cd\u70b9\u7cbe\u8bb2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929|24. \u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9 \u300119.\u5220\u9664\u94fe\u8868\u7684\u5012\u6570\u7b2cN\u4e2a\u8282\u70b9\u3001\u9762\u8bd5\u9898 02.07. \u94fe\u8868\u76f8\u4ea4 \u3001142.\u73af\u5f62\u94fe\u8868II\u6628\u65e5\u56de\u987e24.[\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9](https:\/\/leetcode.cn\/problems\/swap-nodes-in-pairs\/)\u5361\u54e5\u6587\u5b57\u4ee5\u53ca\u89c6\u9891\u8bb2\u89e3\u94fe\u63a5\u91cd\u70b9\u4e24\u4e24\u4ea4\u6362\u94fe\u8868\u4e2d\u7684\u8282\u70b9c\u5b9e\u73b0\u5361\u54e5PS:\u8fd9\u91cc\u8fd8\u662f\u8bf4\u4e00\u4e0b&#xff0c;\u5927\u5bb6\u4e0d\u5fc5\u592a\u5728\u610f\u529b\u6263\u4e0a\u6267\u884c\u7528\u65f6&#xff0c;\u6253\u8d25\u591a\u5c11\u591a\u5c11\u7528\u6237&#xff0c;\u8fd9\u4e2a\u7edf\u8ba1\u4e0d\u51c6\u786e\u7684\u300219.[\u5220\u9664\u94fe\u8868","og_url":"https:\/\/www.wsisp.com\/helps\/61446.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-17T09:05:21+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/61446.html","url":"https:\/\/www.wsisp.com\/helps\/61446.html","name":"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929\uff1a\u94fe\u8868\u76f8\u5173\u91cd\u70b9\u7cbe\u8bb2 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-17T09:05:21+00:00","dateModified":"2026-01-17T09:05:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/61446.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/61446.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/61446.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7b97\u6cd5\u8bad\u7ec3\u8425\u7b2c\u56db\u5929\uff1a\u94fe\u8868\u76f8\u5173\u91cd\u70b9\u7cbe\u8bb2"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=61446"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61446\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=61446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=61446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=61446"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=61446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}