{"id":1511,"date":"2023-06-19T18:08:09","date_gmt":"2023-06-19T10:08:09","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=1511"},"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%9112-%e5%88%a0%e9%99%a4%e9%93%be%e8%a1%a8%e4%b8%ad%e7%9a%84%e8%8a%82%e7%82%b9","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%9112-%e5%88%a0%e9%99%a4%e9%93%be%e8%a1%a8%e4%b8%ad%e7%9a%84%e8%8a%82%e7%82%b9\/","title":{"rendered":"\u3010\u7b97\u6cd5\u9898\u89e3\u301112. \u5220\u9664\u94fe\u8868\u4e2d\u7684\u8282\u70b9"},"content":{"rendered":"<div class='wxsyncmain'>\n<section mpa-from-tpl=\"t\" data-mpa-powered-by=\"yiban.io\">\n<section style=\"margin-bottom: 0px;margin-top: 0px;\">\n<section data-mpa-template-schema=\"body\" style=\"padding:10px;margin:10px;display:-webkit-box;display:-webkit-box-flex;display:flex;\" mpa-from-tpl=\"t\">\n<section data-mpa-template-section=\"\" style=\"border-left:2px solid #979797;padding:12px;line-height:22px;font-size:14px;color:#717171;text-align:justify;\" mpa-from-tpl=\"t\" itemtype=\"https:\/\/mp.weixin.qq.com\/voc\/Section\" itemscope=\"\">\n<section data-mpa-template-text=\"\" itemprop=\"text\" mpa-from-tpl=\"t\">\n<p style=\"margin:0;padding:0;\">\u8fd9\u662f\u4e00\u9053\u7b80\u5355\u9898\u3002<\/p>\n<p style=\"margin:0;padding:0;\"><br  \/><\/p>\n<p style=\"margin: 0px;padding: 0px;text-align: left;\">\u9898\u76ee\u6765\u81ea\uff1ahttps:\/\/leetcode.cn\/problems\/delete-node-in-a-linked-list\/description\/<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p><br mpa-from-tpl=\"t\"  \/><\/p>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n<section data-mpa-template-schema=\"title\" itemtype=\"https:\/\/mp.weixin.qq.com\/voc\/Section\" itemscope=\"\" mpa-from-tpl=\"t\">\n<section data-mpa-template-title=\"\" itemprop=\"title\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;transform: translate3d(2px, 0px, 0px);margin: 10px 0%;\" mpa-from-tpl=\"t\">\n<section style=\"display: inline-block;min-width: 10%;vertical-align: top;background-color: rgb(57, 160, 255);\" mpa-from-tpl=\"t\">\n<section mpa-from-tpl=\"t\">\n<section style=\"margin: 5px 0% -5px;transform: translate3d(-5px, 0px, 0px);\" mpa-from-tpl=\"t\">\n<section style=\"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);padding-right: 8px;padding-left: 8px;\" mpa-from-tpl=\"t\">\n<section mpa-from-tpl=\"t\">\n<section mpa-from-tpl=\"t\">\n<section style=\"text-align: left;padding-right: 8px;padding-left: 8px;\" mpa-from-tpl=\"t\">\n<p><em><strong mpa-from-tpl=\"t\"><span style=\"color: rgb(0, 0, 0);font-family: PingFangSC-Medium, &quot;PingFang SC&quot;;font-size: 16px;font-weight: 700;\">\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=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-bottom: 0px;\"><br  \/><\/p>\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-top: 0px;margin-bottom: 16px;\"><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u7ed9\u5b9a\u4e00\u4e2a\u5355\u94fe\u8868\u7684 <\/span><span style=\"font-size: 15px;font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;letter-spacing: 1px;outline: 0px;font-family: &#39;Source Code Pro&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Ubuntu Mono&#39;, &#39;Anonymous Pro&#39;, &#39;Droid Sans Mono&#39;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &#39;PingFang SC&#39;, &#39;Microsoft YaHei&#39;, 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;\">head<\/span><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\uff0c\u6211\u4eec\u60f3\u5220\u9664\u5b83\u5176\u4e2d\u7684\u4e00\u4e2a\u8282\u70b9 <\/span><span style=\"font-size: 15px;font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;letter-spacing: 1px;outline: 0px;font-family: &#39;Source Code Pro&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Ubuntu Mono&#39;, &#39;Anonymous Pro&#39;, &#39;Droid Sans Mono&#39;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &#39;PingFang SC&#39;, &#39;Microsoft YaHei&#39;, 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;\">node<\/span><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u3002<\/span><\/p>\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-top: 0px;margin-bottom: 16px;\"><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u53ea\u7ed9\u4f60\u4e00\u4e2a\u9700\u8981\u5220\u9664\u7684\u8282\u70b9 <\/span><span style=\"font-size: 15px;font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;letter-spacing: 1px;outline: 0px;font-family: &#39;Source Code Pro&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Ubuntu Mono&#39;, &#39;Anonymous Pro&#39;, &#39;Droid Sans Mono&#39;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &#39;PingFang SC&#39;, &#39;Microsoft YaHei&#39;, 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;\">node<\/span><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\"> \u3002\u4f60\u5c06 <strong>\u65e0\u6cd5\u8bbf\u95ee <\/strong>\u7b2c\u4e00\u4e2a\u8282\u70b9 &nbsp;<\/span><span style=\"font-size: 15px;font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;letter-spacing: 1px;outline: 0px;font-family: &#39;Source Code Pro&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Ubuntu Mono&#39;, &#39;Anonymous Pro&#39;, &#39;Droid Sans Mono&#39;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &#39;PingFang SC&#39;, &#39;Microsoft YaHei&#39;, 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;\">head<\/span><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u3002<\/span><\/p>\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-top: 0px;margin-bottom: 16px;\"><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u94fe\u8868\u7684\u6240\u6709\u503c\u90fd\u662f <strong>\u552f\u4e00&nbsp;<\/strong>\u7684\uff0c\u5e76\u4e14\u4fdd\u8bc1\u7ed9\u5b9a\u7684\u8282\u70b9 <\/span><span style=\"font-size: 15px;font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;letter-spacing: 1px;outline: 0px;font-family: &#39;Source Code Pro&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Ubuntu Mono&#39;, &#39;Anonymous Pro&#39;, &#39;Droid Sans Mono&#39;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &#39;PingFang SC&#39;, &#39;Microsoft YaHei&#39;, 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;\">node<\/span><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\"> \u4e0d\u662f\u94fe\u8868\u4e2d\u7684\u6700\u540e\u4e00\u4e2a\u8282\u70b9\u3002<\/span><\/p>\n<section style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-top: 0px;margin-bottom: 8px;\"><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u5220\u9664\u7ed9\u5b9a\u7684\u8282\u70b9\u3002\u6ce8\u610f\uff0c\u5220\u9664\u8282\u70b9\u5e76\u4e0d\u662f\u6307\u4ece\u5185\u5b58\u4e2d\u5220\u9664\u5b83\u3002\u8fd9\u91cc\u7684\u610f\u601d\u662f\uff1a<\/span><\/section>\n<ul class=\"list-paddingleft-1\" style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;\">\n<li style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;\">\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-bottom: 0px;margin-top: 0px;\"><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u7ed9\u5b9a\u8282\u70b9\u7684\u503c\u4e0d\u5e94\u8be5\u5b58\u5728\u4e8e\u94fe\u8868\u4e2d\u3002<\/span><\/p>\n<\/li>\n<li style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;\">\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-bottom: 0px;margin-top: 0px;\"><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u94fe\u8868\u4e2d\u7684\u8282\u70b9\u6570\u5e94\u8be5\u51cf\u5c11 <\/span><span style=\"font-size: 15px;font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;letter-spacing: 1px;outline: 0px;font-family: &#39;Source Code Pro&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Ubuntu Mono&#39;, &#39;Anonymous Pro&#39;, &#39;Droid Sans Mono&#39;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &#39;PingFang SC&#39;, &#39;Microsoft YaHei&#39;, 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=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u3002<\/span><\/p>\n<\/li>\n<li style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;\">\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-bottom: 0px;margin-top: 0px;\"><span style=\"font-size: 15px;font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;letter-spacing: 1px;outline: 0px;font-family: &#39;Source Code Pro&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Ubuntu Mono&#39;, &#39;Anonymous Pro&#39;, &#39;Droid Sans Mono&#39;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &#39;PingFang SC&#39;, &#39;Microsoft YaHei&#39;, 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;\">node<\/span><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\"> \u524d\u9762\u7684\u6240\u6709\u503c\u987a\u5e8f\u76f8\u540c\u3002<\/span><\/p>\n<\/li>\n<li style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;\">\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-bottom: 0px;margin-top: 0px;\"><span style=\"font-size: 15px;font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;letter-spacing: 1px;outline: 0px;font-family: &#39;Source Code Pro&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Ubuntu Mono&#39;, &#39;Anonymous Pro&#39;, &#39;Droid Sans Mono&#39;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &#39;PingFang SC&#39;, &#39;Microsoft YaHei&#39;, 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;\">node<\/span><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\"> \u540e\u9762\u7684\u6240\u6709\u503c\u987a\u5e8f\u76f8\u540c\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-bottom: 0px;margin-top: 0px;\"><br  \/><strong><span style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;font-size: 14px;text-align: left;\">\u793a\u4f8b1:&nbsp;<\/span><\/strong><br  \/><\/p>\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-bottom: 0px;margin-top: 0px;\"><br  \/><\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.7153024911032029\"  data-type=\"jpeg\" data-w=\"562\" style=\"color: rgb(38, 38, 38);font-size: 14px;\" width=\"562\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043410815.jpeg\" 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.7153024911032029\"  data-type=\"jpeg\" data-w=\"562\" style=\"color: rgb(38, 38, 38);font-size: 14px;\" width=\"562\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043410815.jpeg\"  \/><\/noscript><\/p>\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=\"font-size: 14px;\">\u8f93\u5165\uff1ahead = [4,5,1,9], node = 5 <br mpa-from-tpl=\"t\"  \/>\u8f93\u51fa\uff1a[4,1,9] <br mpa-from-tpl=\"t\"  \/>\u89e3\u91ca\uff1a\u6307\u5b9a\u94fe\u8868\u4e2d\u503c\u4e3a 5 \u7684\u7b2c\u4e8c\u4e2a\u8282\u70b9\uff0c\u90a3\u4e48\u5728\u8c03\u7528\u4e86\u4f60\u7684\u51fd\u6570\u4e4b\u540e\uff0c\u8be5\u94fe\u8868\u5e94\u53d8\u4e3a 4 -&gt; 1 -&gt; 9<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><span style=\"font-size: 14px;\"><strong style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;white-space: normal;\">\u793a\u4f8b2:&nbsp;<\/strong><\/span><\/section>\n<section style=\"margin-bottom: 0px;\"><strong style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;white-space: normal;\"><br  \/><\/strong><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg lazyload\" data-ratio=\"0.7864768683274022\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"562\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043411641.jpeg\" 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 js_insertlocalimg\" data-ratio=\"0.7864768683274022\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"562\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043411641.jpeg\"  \/><\/noscript><\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 14px;\"><br mpa-from-tpl=\"t\"  \/><\/span><\/p>\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=\"font-size: 14px;\">\u8f93\u5165\uff1ahead = [4,5,1,9], node = 1 <br mpa-from-tpl=\"t\"  \/>\u8f93\u51fa\uff1a[4,5,9] <br mpa-from-tpl=\"t\"  \/>\u89e3\u91ca\uff1a\u6307\u5b9a\u94fe\u8868\u4e2d\u503c\u4e3a 1 \u7684\u7b2c\u4e09\u4e2a\u8282\u70b9\uff0c\u90a3\u4e48\u5728\u8c03\u7528\u4e86\u4f60\u7684\u51fd\u6570\u4e4b\u540e\uff0c\u8be5\u94fe\u8868\u5e94\u53d8\u4e3a 4 -&gt; 5 -&gt; 9<\/span><\/code><\/pre>\n<\/section>\n<p style=\"min-height: 24px;margin-bottom: 8px;\"><strong><span style=\"color: rgb(38, 38, 38);font-size: 14px;\">\u63d0\u793a\uff1a<\/span><\/strong><\/p>\n<ul class=\"list-paddingleft-1\" style=\"padding-left: 23px;\">\n<li>\n<p><span style=\"color: rgb(38, 38, 38);font-size: 14px;\">\u94fe\u8868\u4e2d\u8282\u70b9\u7684\u6570\u76ee\u8303\u56f4\u662f<\/span><span style=\"color: rgb(38, 38, 38);font-size: 14px;\"> <\/span><span style=\"color: rgba(38, 38, 38, 0.75);font-size: 14px;\">[2, 1000]<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"color: rgba(38, 38, 38, 0.75);font-size: 14px;\">-1000 &lt;= Node.val &lt;= 1000<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"color: rgb(38, 38, 38);font-size: 14px;\">\u94fe\u8868\u4e2d\u6bcf\u4e2a\u8282\u70b9\u7684\u503c\u90fd\u662f<\/span><span style=\"color: rgb(38, 38, 38);font-size: 14px;\"> <\/span><strong><span style=\"color: rgb(38, 38, 38);font-size: 14px;\">\u552f\u4e00<\/span><\/strong><span style=\"color: rgb(38, 38, 38);font-size: 14px;\"> <\/span><span style=\"color: rgb(38, 38, 38);font-size: 14px;\">\u7684<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"color: rgb(38, 38, 38);font-size: 14px;\">\u9700\u8981\u5220\u9664\u7684\u8282\u70b9 <\/span><span style=\"color: rgba(38, 38, 38, 0.75);font-size: 14px;\">node<\/span><span style=\"color: rgb(38, 38, 38);font-size: 14px;\"> \u662f <\/span><strong><span style=\"color: rgb(38, 38, 38);font-size: 14px;\">\u94fe\u8868\u4e2d\u7684\u8282\u70b9<\/span><\/strong><span style=\"color: rgb(38, 38, 38);font-size: 14px;\"> \uff0c\u4e14 <\/span><strong><span style=\"color: rgb(38, 38, 38);font-size: 14px;\">\u4e0d\u662f\u672b\u5c3e\u8282\u70b9<\/span><\/strong><\/p>\n<\/li>\n<\/ul>\n<p style=\"color: rgb(86, 86, 86);font-family: PingFangSC-Regular, &quot;PingFang SC&quot;;font-size: 14px;text-align: left;margin-bottom: 0px;\"><br  \/><\/p>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n<section style=\"display: flex;justify-content: center;align-items: center;width: 100%;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"width: 113px;height: 18px;display: flex;justify-content: center;\" data-mid=\"\" mpa-from-tpl=\"t\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.1592920353982301\"  data-w=\"226\" style=\"display: block;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043412871.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=\"display: block;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043412871.png\"  \/><\/noscript><\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;\"><br mpa-from-tpl=\"t\"  \/><\/p>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n<section data-mpa-template-schema=\"title\" itemtype=\"https:\/\/mp.weixin.qq.com\/voc\/Section\" itemscope=\"\" mpa-from-tpl=\"t\">\n<section data-mpa-template-title=\"\" itemprop=\"title\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;transform: translate3d(2px, 0px, 0px);margin: 10px 0%;\" mpa-from-tpl=\"t\">\n<section style=\"display: inline-block;min-width: 10%;vertical-align: top;background-color: rgb(57, 160, 255);\" mpa-from-tpl=\"t\">\n<section mpa-from-tpl=\"t\">\n<section style=\"margin: 5px 0% -5px;transform: translate3d(-5px, 0px, 0px);\" mpa-from-tpl=\"t\">\n<section style=\"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);padding-right: 8px;padding-left: 8px;\" mpa-from-tpl=\"t\">\n<section mpa-from-tpl=\"t\">\n<section mpa-from-tpl=\"t\">\n<section style=\"text-align: left;padding-right: 8px;padding-left: 8px;\" mpa-from-tpl=\"t\">\n<p style=\"font-size: 16px;\"><span style=\"color:#000000;\"><strong><em>\u9898\u89e3<\/em><\/strong><\/span><\/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;\"><span style=\"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);\">\u5220\u9664\u6307\u5b9a\u8282\u70b9\u7684\u5e38\u7528\u505a\u6cd5\u5c31\u662f\u5c06 <\/span><strong style=\"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;\"><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, Arial, sans-serif;color: rgb(86, 86, 86);font-size: 14px;text-decoration-style: solid;text-decoration-color: rgb(86, 86, 86);\">\u88ab\u5220\u9664\u8282\u70b9<\/span><\/strong><span style=\"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);\"> \u7684\u4e0a\u4e00\u4e2a\u8282\u70b9\u6307\u5411\u8be5\u8282\u70b9\u7684\u4e0b\u4e00\u4e2a\u8282\u70b9\u3002<\/span><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg lazyload\" data-ratio=\"0.4953125\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1280\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043413699.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 js_insertlocalimg\" data-ratio=\"0.4953125\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1280\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043413699.png\"  \/><\/noscript><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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);\">\u4f46\u662f\u8fd9\u4e2a\u9898\u76ee\u53ea\u7ed9\u51fa\u4e86\u9700\u8981\u88ab\u5220\u9664\u7684\u8282\u70b9\uff0c\u4e14\u56e0\u4e3a\u662f\u5355\u94fe\u8868\uff0c\u6240\u4ee5\u6211\u4eec\u65e0\u6cd5\u83b7\u53d6\u5230<\/span><span style=\"font-size: 15px;font-family: PingFangSC-Regular, &#39;PingFang SC&#39;;letter-spacing: 1px;outline: 0px;font-family: &#39;Source Code Pro&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Ubuntu Mono&#39;, &#39;Anonymous Pro&#39;, &#39;Droid Sans Mono&#39;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &#39;PingFang SC&#39;, &#39;Microsoft YaHei&#39;, 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;\">node<\/span><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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);\">\u7684\u4e0a\u4e00\u4e2a\u8282\u70b9\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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);\"><br  \/><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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);\">\u9898\u76ee\u4e2d\u660e\u786e\u8868\u793a\u94fe\u8868\u4e2d\u7684\u6240\u6709\u8282\u70b9\u503c\u90fd\u662f\u4e0d\u540c\u7684\uff0c\u65e2\u7136\u5220\u4e0d\u6389\u5f53\u524d\u8282\u70b9\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u5c06\u4e0b\u4e00\u4e2a\u8282\u70b9\u7684\u503c\u8d4b\u503c\u7ed9\u5f53\u524d\u8282\u70b9\uff0c\u7136\u540e\u5220\u9664\u4e0b\u4e00\u4e2a\u8282\u70b9\uff0c\u5176\u7ed3\u679c\u5c31\u76f8\u5f53\u4e8e\u5220\u9664\u4e86\u94fe\u8868\u4e2d\u7ed9\u5b9a\u8282\u70b9\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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);\"><br  \/><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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);\">\u56e0\u4e3a\u7ed9\u5b9a\u7684\u8282\u70b9\u4e0d\u662f\u6700\u540e\u4e00\u4e2a\u8282\u70b9\uff0c\u6240\u4ee5\u4e0d\u5b58\u5728\u4e0b\u4e00\u4e2a\u8282\u70b9\u4e3a\u7a7a\u7684\u60c5\u51b5\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg lazyload\" data-ratio=\"0.5625\" data-s=\"300,640\"  data-type=\"gif\" data-w=\"720\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043417700.gif\" 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 js_insertlocalimg\" data-ratio=\"0.5625\" data-s=\"300,640\"  data-type=\"gif\" data-w=\"720\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043417700.gif\"><\/noscript><\/p>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"padding-left: 0px;padding-right: 0px;\">\n<section style=\"width: 100%;display: flex;align-items: center;justify-content: flex-start;padding: 2px 0px 2px 24px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"display: flex;justify-content: flex-start;align-items: center;flex-direction: column;padding-left: 0px;padding-right: 0px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"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;margin-left: -21px;margin-bottom: -26px;z-index: 1;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<p style=\"font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(78, 150, 255);line-height: 26px;\" data-mid=\"\">01<\/p>\n<\/section>\n<section style=\"z-index: 1;border-bottom: 1px solid rgb(57, 160, 255);\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;padding: 0px 12px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<p style=\"font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(57, 160, 255);line-height: 22px;\" data-mid=\"\">Java \u4ee3\u7801\u5b9e\u73b0<\/p>\n<\/section>\n<\/section>\n<section style=\"width: 6px;height: 6px;display: flex;justify-content: center;align-items: center;background-color: rgb(253, 217, 80);align-self: flex-end;margin-top: -4px;z-index: 2;\" data-mid=\"\" mpa-from-tpl=\"t\"><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;* public 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) { val = x; }<br mpa-from-tpl=\"t\"  \/>&nbsp;* }<br mpa-from-tpl=\"t\"  \/>&nbsp;*\/<\/span><br mpa-from-tpl=\"t\"  \/><span style=\"font-size: 14px;\"><span style=\"font-size: 14px;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=\"font-size: 14px;color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 275px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\"><span style=\"font-size: 14px;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=\"font-size: 14px;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;\">void<\/span>&nbsp;<span style=\"font-size: 14px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 72px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;\">deleteNode<\/span><span style=\"font-size: 14px;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 node)<\/span>&nbsp;<\/span>{<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;node.val = node.next.val;<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;node.next = node.next.next;<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/>}<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 0px;margin-top: 0px;\"><br  \/><\/p>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"padding-left: 0px;padding-right: 0px;\">\n<section style=\"width: 100%;display: flex;align-items: center;justify-content: flex-start;padding: 2px 0px 2px 24px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"display: flex;justify-content: flex-start;align-items: center;flex-direction: column;padding-left: 0px;padding-right: 0px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"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;margin-left: -21px;margin-bottom: -26px;z-index: 1;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<p style=\"font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(78, 150, 255);line-height: 26px;\" data-mid=\"\">02<\/p>\n<\/section>\n<section style=\"z-index: 1;border-bottom: 1px solid rgb(57, 160, 255);\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;padding: 0px 12px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<p style=\"font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(57, 160, 255);line-height: 22px;\" data-mid=\"\">Go \u4ee3\u7801\u5b9e\u73b0<\/p>\n<\/section>\n<\/section>\n<section style=\"width: 6px;height: 6px;display: flex;justify-content: center;align-items: center;background-color: rgb(253, 217, 80);align-self: flex-end;margin-top: -4px;z-index: 2;\" data-mid=\"\" mpa-from-tpl=\"t\"><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=\"font-size: 14px;\"><span style=\"font-size: 14px;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\"  \/><span style=\"font-size: 14px;color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 224px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\"><span style=\"font-size: 14px;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=\"font-size: 14px;color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 72px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;\">deleteNode<\/span><span style=\"font-size: 14px;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;\">(node *ListNode)<\/span><\/span>&nbsp;{<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;node.Val = node.Next.Val<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;node.Next = node.Next.Next<br mpa-from-tpl=\"t\"  \/>}<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><br  \/><\/section>\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n<section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"padding-left: 0px;padding-right: 0px;\">\n<section style=\"width: 100%;display: flex;align-items: center;justify-content: flex-start;padding: 2px 0px 2px 24px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"display: flex;justify-content: flex-start;align-items: center;flex-direction: column;padding-left: 0px;padding-right: 0px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"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;margin-left: -21px;margin-bottom: -26px;z-index: 1;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<p style=\"font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(78, 150, 255);line-height: 26px;\" data-mid=\"\">03<\/p>\n<\/section>\n<section style=\"z-index: 1;border-bottom: 1px solid rgb(57, 160, 255);\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;padding: 0px 12px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<p style=\"font-size: 16px;font-family: PingFangSC-Semibold, &quot;PingFang SC&quot;;font-weight: bold;color: rgb(57, 160, 255);line-height: 22px;\" data-mid=\"\">\u590d\u6742\u5ea6\u5206\u6790<\/p>\n<\/section>\n<\/section>\n<section style=\"width: 6px;height: 6px;display: flex;justify-content: center;align-items: center;background-color: rgb(253, 217, 80);align-self: flex-end;margin-top: -4px;z-index: 2;\" data-mid=\"\" mpa-from-tpl=\"t\"><br mpa-from-tpl=\"t\"  \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;\"><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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 <em><strong>O(1)<\/strong><\/em><\/span><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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;\"><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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 <em><strong>O(1)<\/strong><\/em><\/span><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#39;Helvetica Neue&#39;, &#39;PingFang SC&#39;, &#39;Hiragino Sans GB&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft YaHei&#39;, 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 data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n<section style=\"display: flex;justify-content: center;align-items: center;justify-content: flex-end;padding-right: 18px;width: 100%;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"width: 30px;height: 34px;display: flex;justify-content: center;align-self: flex-start;margin-left: -26px;margin-bottom: -22px;z-index: 1;\" data-mid=\"\" mpa-from-tpl=\"t\">&nbsp;&nbsp;&nbsp;<img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"1.1333333333333333\"  data-w=\"60\" style=\"display: block;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043418852.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=\"display: block;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043418852.png\"  \/><\/noscript><\/section>\n<section style=\"text-align: center;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<section style=\"text-align: center;border-bottom: 1px solid rgb(179, 216, 254);padding: 0px 10px 0px 8px;\" data-mid=\"\" mpa-from-tpl=\"t\">\n<p style=\"font-size: 14px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #1A4C7C;line-height: 20px;\" data-mid=\"\">\u70b9\u4e2a<nobr style=\"padding: 0px 4px;\" data-mid=\"\"  \/>\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\/delete-node-in-a-linke &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1504,"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-1511","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\/20230528043409319-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043410815.jpeg","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043409319-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043409319-1024x436.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043410815.jpeg","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043409319-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043409319-1024x436.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043409319.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043410815.jpeg","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043410815.jpeg","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043411641.jpeg","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043411641.jpeg","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043412871.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043412871.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043413699.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043413699.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043417700.gif","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043417700.gif","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043418852.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043418852.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":190,"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\/1511","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=1511"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1511\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/1504"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}