{"id":1561,"date":"2023-06-27T13:54:14","date_gmt":"2023-06-27T05:54:14","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=1561"},"modified":"2023-06-27T13:54:14","modified_gmt":"2023-06-27T05:54:14","slug":"%e3%80%90%e7%ae%97%e6%b3%95%e9%a2%98%e8%a7%a3%e3%80%916-%e5%90%88%e5%b9%b6%e4%b8%a4%e4%b8%aa%e6%9c%89%e5%ba%8f%e6%95%b0%e7%bb%84","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%916-%e5%90%88%e5%b9%b6%e4%b8%a4%e4%b8%aa%e6%9c%89%e5%ba%8f%e6%95%b0%e7%bb%84\/","title":{"rendered":"\u3010\u7b97\u6cd5\u9898\u89e3\u30116.\u5408\u5e76\u4e24\u4e2a\u6709\u5e8f\u6570\u7ec4"},"content":{"rendered":"<div class='wxsyncmain'>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 1.3em;max-width: 100%;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);text-size-adjust: inherit;caret-color: rgb(0, 0, 0);color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;text-align: left;border-bottom: 2px solid rgb(239, 112, 96);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"margin-right: 3px;padding: 3px 10px 1px;outline: 0px;max-width: 100%;display: inline-block;background-color: rgb(239, 112, 96);color: rgb(255, 255, 255);border-top-right-radius: 3px;border-top-left-radius: 3px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u9898\u76ee<\/span><span style=\"outline: 0px;max-width: 100%;display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><\/span><\/h2>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;max-width: 100%;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);text-size-adjust: inherit;caret-color: rgb(0, 0, 0);color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;text-align: left;display: flex;flex-direction: column;justify-content: center;align-items: center;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/figure>\n<blockquote class=\"js_blockquote_wrap\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"192\" data-source-title=\"https:\/\/leetcode.cn\/problems\/merge-sorted-array\/description\/\">\n<section class=\"js_blockquote_digest\">\n<section>\n<p>\u7ed9\u4f60\u4e24\u4e2a\u6309 \u975e\u9012\u51cf\u987a\u5e8f \u6392\u5217\u7684\u6574\u6570\u6570\u7ec4 <strong>nums1<\/strong>&nbsp;\u548c <strong>nums2<\/strong>\uff0c\u53e6\u6709\u4e24\u4e2a\u6574\u6570 <strong>m<\/strong>&nbsp;\u548c <strong>n<\/strong>&nbsp;\uff0c\u5206\u522b\u8868\u793a <strong>nums1<\/strong>&nbsp;\u548c <strong>nums2<\/strong>&nbsp;\u4e2d\u7684\u5143\u7d20\u6570\u76ee\u3002<\/p>\n<p><br  \/><\/p>\n<p>\u8bf7\u4f60 \u5408\u5e76 <strong>nums2<\/strong>&nbsp;\u5230 <strong>nums1<\/strong>&nbsp;\u4e2d\uff0c\u4f7f\u5408\u5e76\u540e\u7684\u6570\u7ec4\u540c\u6837\u6309 \u975e\u9012\u51cf\u987a\u5e8f \u6392\u5217\u3002<\/p>\n<p><br  \/><\/p>\n<p><strong>\u6ce8\u610f\uff1a<\/strong>&nbsp;\u6700\u7ec8\uff0c\u5408\u5e76\u540e\u6570\u7ec4\u4e0d\u5e94\u7531\u51fd\u6570\u8fd4\u56de\uff0c\u800c\u662f\u5b58\u50a8\u5728\u6570\u7ec4 <strong>nums1<\/strong>&nbsp;\u4e2d\u3002\u4e3a\u4e86\u5e94\u5bf9\u8fd9\u79cd\u60c5\u51b5\uff0c<strong>nums1<\/strong>&nbsp;\u7684\u521d\u59cb\u957f\u5ea6\u4e3a <strong>m + n<\/strong>\uff0c\u5176\u4e2d\u524d <strong>m<\/strong>&nbsp;\u4e2a\u5143\u7d20\u8868\u793a\u5e94\u5408\u5e76\u7684\u5143\u7d20\uff0c\u540e <strong>n&nbsp;<\/strong>\u4e2a\u5143\u7d20\u4e3a <strong>0<\/strong> \uff0c\u5e94\u5ffd\u7565\u3002<strong>nums2&nbsp;<\/strong>\u7684\u957f\u5ea6\u4e3a <strong>n <\/strong>\u3002<\/p>\n<\/section>\n<\/section>\n<section class=\"blockquote_info js_blockquote_source\" data-json=\"%7B%22type%22%3A%22out%22%2C%22source%22%3A%22url%22%2C%22digest%22%3A%22%22%2C%22digestLen%22%3A260%2C%22text%22%3A%22%E7%BB%99%E4%BD%A0%E4%B8%A4%E4%B8%AA%E6%8C%89%20%E9%9D%9E%E9%80%92%E5%87%8F%E9%A1%BA%E5%BA%8F%20%E6%8E%92%E5%88%97%E7%9A%84%E6%95%B4%E6%95%B0%E6%95%B0%E7%BB%84%20%60nums1%60%20%E5%92%8C%20%60nums2%60%EF%BC%8C%E5%8F%A6%E6%9C%89%E4%B8%A4%E4%B8%AA%E6%95%B4%E6%95%B0%20%60m%60%20%E5%92%8C%20%60n%60%20%EF%BC%8C%E5%88%86%E5%88%AB%E8%A1%A8%E7%A4%BA%20%60nums1%60%20%E5%92%8C%20%60nums2%60%20%E4%B8%AD%E7%9A%84%E5%85%83%E7%B4%A0%E6%95%B0%E7%9B%AE%E3%80%82%E8%AF%B7%E4%BD%A0%20%E5%90%88%E5%B9%B6%20%60nums2%60%20%E5%88%B0%20%60nums1%60%20%E4%B8%AD%EF%BC%8C%E4%BD%BF%E5%90%88%E5%B9%B6%E5%90%8E%E7%9A%84%E6%95%B0%E7%BB%84%E5%90%8C%E6%A0%B7%E6%8C%89%20%E9%9D%9E%E9%80%92%E5%87%8F%E9%A1%BA%E5%BA%8F%20%E6%8E%92%E5%88%97%E3%80%82**%E6%B3%A8%E6%84%8F%EF%BC%9A**%20%E6%9C%80%E7%BB%88%EF%BC%8C%E5%90%88%E5%B9%B6%E5%90%8E%E6%95%B0%E7%BB%84%E4%B8%8D%E5%BA%94%E7%94%B1%E5%87%BD%E6%95%B0%E8%BF%94%E5%9B%9E%EF%BC%8C%E8%80%8C%E6%98%AF%E5%AD%98%E5%82%A8%E5%9C%A8%E6%95%B0%E7%BB%84%20%60nums1%60%20%E4%B8%AD%E3%80%82%E4%B8%BA%E4%BA%86%E5%BA%94%E5%AF%B9%E8%BF%99%E7%A7%8D%E6%83%85%E5%86%B5%EF%BC%8C%60nums1%60%20%E7%9A%84%E5%88%9D%E5%A7%8B%E9%95%BF%E5%BA%A6%E4%B8%BA%20%60m%20%2B%20n%60%EF%BC%8C%E5%85%B6%E4%B8%AD%E5%89%8D%20%60m%60%20%E4%B8%AA%E5%85%83%E7%B4%A0%E8%A1%A8%E7%A4%BA%E5%BA%94%E5%90%88%E5%B9%B6%E7%9A%84%E5%85%83%E7%B4%A0%EF%BC%8C%E5%90%8E%20%60n%60%20%E4%B8%AA%E5%85%83%E7%B4%A0%E4%B8%BA%200%20%EF%BC%8C%E5%BA%94%E5%BF%BD%E7%95%A5%E3%80%82%60nums2%60%20%E7%9A%84%E9%95%BF%E5%BA%A6%E4%B8%BA%20n%20%E3%80%82%22%2C%22article%22%3A%7B%7D%2C%22hasReportOverSize%22%3Afalse%2C%22editorReportData%22%3A%5B%7B%22id%22%3A%22122333%22%2C%22key%22%3A%2276%22%2C%22len%22%3A1%7D%5D%2C%22from%22%3A%22https%3A%2F%2Fleetcode.cn%2Fproblems%2Fmerge-sorted-array%2Fdescription%2F%22%7D\"><span class=\"blockquote_other\">https:\/\/leetcode.cn\/problems\/merge-sorted-array\/description\/<\/span><\/section>\n<\/blockquote>\n<p><br  \/><\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 8px;outline: 0px;font-weight: bold;font-size: 1.3em;max-width: 100%;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);text-size-adjust: inherit;caret-color: rgb(0, 0, 0);color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;text-align: left;border-bottom: 2px solid rgb(239, 112, 96);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"margin-right: 3px;padding: 3px 10px 1px;outline: 0px;max-width: 100%;display: inline-block;background-color: rgb(239, 112, 96);color: rgb(255, 255, 255);border-top-right-radius: 3px;border-top-left-radius: 3px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u89e3\u6cd5\u4e00\uff1a\u53cc\u6307\u9488<\/span><span style=\"outline: 0px;max-width: 100%;display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><\/span><\/h2>\n<p style=\"margin-top: 24px;outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;font-weight: 600;font-size: 20px;text-size-adjust: inherit;font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;color: rgb(79, 79, 79);line-height: 28px;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);visibility: visible;margin-bottom: 8px;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-size: 17px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u89e3\u9898\u601d\u8def<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;text-align: justify;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">\u56e0\u4e3a nums1 \u548c nums2 \u5df2\u7ecf\u662f\u6392\u597d\u5e8f\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u53cc\u6307\u9488\uff0cindex1 \u6307\u5411 nums1\uff0cindex2 \u6307\u5411 nums2\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;text-align: justify;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">\u6bcf\u6b21\u9009 nums1[index1]&nbsp;\u548c nums2[index2]&nbsp;\u4e2d\u7684\u8f83\u5c0f\u503c\u653e\u5165\u7b54\u6848 ans[cur++]\uff0c\u7136\u540e\u5c06\u7528\u6389\u7684\u90a3\u4e2a\u6570\u7ec4\u7684\u6307\u9488\u5f80\u540e\u79fb\u52a8\u4e00\u4f4d\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\"><br  \/><\/span><\/p>\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;font-weight: 600;font-size: 20px;text-size-adjust: inherit;font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;color: rgb(79, 79, 79);line-height: 28px;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);visibility: visible;margin-bottom: 8px;margin-top: 0px;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-size: 17px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u56fe\u89e3<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;text-align: justify;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">\u4ee5 nums1 = [1,2,3,0,0,0], m = 3, nums2 = [2,5,6], n = 3 \u4e3a\u4f8b\uff0c\u8f93\u51fa\uff1a[1,2,2,3,5,6]\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg lazyload\" data-ratio=\"14.695522388059702\" data-s=\"300,640\"  data-type=\"png\" data-w=\"335\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043643773.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=\"14.695522388059702\" data-s=\"300,640\"  data-type=\"png\" data-w=\"335\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043643773.png\"  \/><\/noscript><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;font-weight: 600;font-size: 20px;text-size-adjust: inherit;font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;color: rgb(79, 79, 79);line-height: 28px;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);visibility: visible;margin-bottom: 8px;margin-top: 0px;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-size: 17px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u4ee3\u7801\u5b9e\u73b0<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"cs\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">class<\/span> <span class=\"code-snippet__title\">Solution<\/span> {<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">public<\/span> <span class=\"code-snippet__keyword\">void<\/span> <span class=\"code-snippet__title\">merge<\/span>(<span class=\"code-snippet__params\"><span class=\"code-snippet__keyword\">int<\/span>[] nums1, <span class=\"code-snippet__keyword\">int<\/span> m, <span class=\"code-snippet__keyword\">int<\/span>[] nums2, <span class=\"code-snippet__keyword\">int<\/span> n<\/span>)<\/span> {<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">int<\/span>[] ans = <span class=\"code-snippet__keyword\">new<\/span> <span class=\"code-snippet__keyword\">int<\/span>[m + n];<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">int<\/span> cur = <span class=\"code-snippet__number\">0<\/span>;<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">int<\/span> index1 = <span class=\"code-snippet__number\">0<\/span>;<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">int<\/span> index2 = <span class=\"code-snippet__number\">0<\/span>;<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">while<\/span>(index1 &lt; m || index2 &lt; n){<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__keyword\">if<\/span>(index2 &gt;= n || index1 &lt; m &amp;&amp; nums1[index1] &lt;= nums2[index2]){<\/span><\/code><code><span class=\"code-snippet_outer\">                ans[cur++] = nums1[index1++];<\/span><\/code><code><span class=\"code-snippet_outer\">            }<span class=\"code-snippet__keyword\">else<\/span>{<\/span><\/code><code><span class=\"code-snippet_outer\">                ans[cur++] = nums2[index2++];<\/span><\/code><code><span class=\"code-snippet_outer\">            }<\/span><\/code><code><span class=\"code-snippet_outer\">        }<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">for<\/span>(<span class=\"code-snippet__keyword\">int<\/span> i = <span class=\"code-snippet__number\">0<\/span>; i &lt; m + n; i++){<\/span><\/code><code><span class=\"code-snippet_outer\">            nums1[i] = ans[i];<\/span><\/code><code><span class=\"code-snippet_outer\">        }<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><br  \/><\/section>\n<p style=\"outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;white-space: normal;font-weight: 600;font-size: 20px;text-size-adjust: inherit;font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;color: rgb(79, 79, 79);line-height: 28px;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);visibility: visible;margin-bottom: 8px;margin-top: 0px;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-size: 17px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u590d\u6742\u5ea6\u5206\u6790<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><strong><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">\u65f6\u95f4\u590d\u6742\u5ea6O(m + n)<\/span><\/strong><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">: <\/span><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">while\u5faa\u73af\u5171\u6267\u884c m + n \u6b21\uff0cfor\u5faa\u73af\u540c\u6837\u6267\u884cm + n\u6b21\uff0c\u603b\u8ba1 2(m + n)\u6b21\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><strong><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">\u7a7a\u95f4\u590d\u6742\u5ea6O(m + n)<\/span><\/strong><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">: <\/span><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">ans \u6570\u7ec4\u957f\u5ea6\u4e3a m + n, \u5176\u4ed6\u4e3a\u5e38\u6570\u3002<\/span><\/p>\n<section style=\"margin-bottom: 0px;\"><br  \/><\/section>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 8px;font-weight: bold;font-size: 1.3em;white-space: normal;outline: 0px;max-width: 100%;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);text-size-adjust: inherit;caret-color: rgb(0, 0, 0);color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;text-align: left;border-bottom: 2px solid rgb(239, 112, 96);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"margin-right: 3px;padding: 3px 10px 1px;outline: 0px;max-width: 100%;display: inline-block;background-color: rgb(239, 112, 96);color: rgb(255, 255, 255);border-top-right-radius: 3px;border-top-left-radius: 3px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u89e3\u6cd5\u4e8c\uff1a\u9006\u5411\u53cc\u6307\u9488<\/span><\/h2>\n<p style=\"margin-top: 24px;margin-bottom: 8px;white-space: normal;outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;font-weight: 600;font-size: 20px;text-size-adjust: inherit;font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;color: rgb(79, 79, 79);line-height: 28px;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);visibility: visible;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-size: 17px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u89e3\u9898\u601d\u8def<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;text-align: justify;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">\u56e0\u4e3a nums1 \u7ed9\u5b9a\u7684\u957f\u5ea6\u662f m + n\uff0c\u5df2\u7ecf\u6ee1\u8db3\u5408\u5e76\u540e\u7684\u957f\u5ea6\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u7528\u5b83\u6765\u5b58\u50a8\u6700\u7ec8\u7684\u7b54\u6848\uff0c\u4f46\u662f\u6b63\u5411\u53cc\u6307\u9488\u5728\u4e0d\u4f7f\u7528\u989d\u5916\u7684\u5b58\u50a8\u7a7a\u95f4\u65f6\u65e0\u6cd5\u6ee1\u8db3\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(m + n)\u3002\u53c8\u56e0\u4e3anums1\u7684\u540en\u4e2a\u4f4d\u7f6e\u90fd\u662f\u7a7a\u7f6e\u7684\uff0c\u53ef\u4ee5\u968f\u610f\u4fee\u6539\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u8003\u8651\u9006\u5411\u53cc\u6307\u9488\u7684\u65b9\u5f0f\uff0c\u9006\u5e8f\u53d6\u6700\u5927\u503c\u5e76\u9006\u5e8f\u653e\u5165nums1\u3002\u5f53\u9006\u5e8f\u7b2c k \u4e2a\u4f4d\u7f6e\u8ba1\u7b97\u5b8c\u6210\u540e\uff0cnums1 \u9006\u5e8f\u7684\u7b2c k + 1 \u4e2a\u4f4d\u7f6e\u8981\u4e48\u521a\u597d\u662f\u6b63\u786e\u7b54\u6848\u65e0\u9700\u4fee\u6539\uff0c\u8981\u4e48\u5df2\u7ecf\u8d4b\u503c\u7ed9\u8ba1\u7b97\u8fc7\u7684\u4f4d\u7f6e\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539\u3002<\/span><br  \/><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;\"><br  \/><\/p>\n<p style=\"margin-bottom: 8px;white-space: normal;outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;font-weight: 600;font-size: 20px;text-size-adjust: inherit;font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;color: rgb(79, 79, 79);line-height: 28px;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);visibility: visible;margin-top: 0px;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-size: 17px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u56fe\u89e3<\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);visibility: visible;text-align: left;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">\u540c\u6837\u4ee5 nums1 = [1,2,3,0,0,0], m = 3, nums2 = [2,5,6], n = 3 \u4e3a\u4f8b\uff0c\u8f93\u51fa\uff1a[1,2,2,3,5,6]\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;white-space: normal;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg lazyload\" data-ratio=\"5.3517520215633425\" data-s=\"300,640\"  data-type=\"png\" data-w=\"742\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043653645.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=\"5.3517520215633425\" data-s=\"300,640\"  data-type=\"png\" data-w=\"742\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043653645.png\"  \/><\/noscript><\/p>\n<p><br  \/><\/p>\n<section style=\"margin-bottom: 8px;white-space: normal;outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;font-weight: 600;font-size: 20px;text-size-adjust: inherit;font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;color: rgb(79, 79, 79);line-height: 28px;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);visibility: visible;margin-top: 0px;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-size: 17px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u4ee3\u7801\u5b9e\u73b0<\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"cs\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">class<\/span> <span class=\"code-snippet__title\">Solution<\/span> {<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">public<\/span> <span class=\"code-snippet__keyword\">void<\/span> <span class=\"code-snippet__title\">merge<\/span>(<span class=\"code-snippet__params\"><span class=\"code-snippet__keyword\">int<\/span>[] nums1, <span class=\"code-snippet__keyword\">int<\/span> m, <span class=\"code-snippet__keyword\">int<\/span>[] nums2, <span class=\"code-snippet__keyword\">int<\/span> n<\/span>)<\/span> {<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">int<\/span> index1 = m - <span class=\"code-snippet__number\">1<\/span>;<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">int<\/span> index2 = n - <span class=\"code-snippet__number\">1<\/span>;<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">int<\/span> cur = m + n <span class=\"code-snippet__number\">-1<\/span>;<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">while<\/span>(index1 &gt;= <span class=\"code-snippet__number\">0<\/span> || index2 &gt;= <span class=\"code-snippet__number\">0<\/span>){<\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__keyword\">if<\/span>(index2 &lt; <span class=\"code-snippet__number\">0<\/span> || index1 &gt;= <span class=\"code-snippet__number\">0<\/span> &amp;&amp; nums1[index1] &gt;= nums2[index2]){<\/span><\/code><code><span class=\"code-snippet_outer\">                nums1[cur--] = nums1[index1--];<\/span><\/code><code><span class=\"code-snippet_outer\">            }<span class=\"code-snippet__keyword\">else<\/span>{<\/span><\/code><code><span class=\"code-snippet_outer\">                nums1[cur--] = nums2[index2--];<\/span><\/code><code><span class=\"code-snippet_outer\">            }<\/span><\/code><code><span class=\"code-snippet_outer\">        }<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin-bottom: 0px;\"><br  \/><\/section>\n<p style=\"white-space: normal;outline: 0px;max-width: 100%;box-sizing: border-box;letter-spacing: 0.544px;font-weight: 600;font-size: 20px;text-size-adjust: inherit;font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;color: rgb(79, 79, 79);line-height: 28px;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);visibility: visible;margin-top: 0px;margin-bottom: 8px;overflow-wrap: break-word !important;\"><span style=\"outline: 0px;max-width: 100%;font-size: 17px;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u590d\u6742\u5ea6\u5206\u6790<\/span><\/p>\n<p style=\"margin-bottom: 0px;white-space: normal;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;text-align: left;\"><strong><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">\u65f6\u95f4\u590d\u6742\u5ea6O(m + n)<\/span><\/strong><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">:&nbsp;<\/span><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">while\u5faa\u73af\u5171\u6267\u884c m + n \u6b21\u3002<\/span><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\"><\/span><\/p>\n<p style=\"margin-bottom: 0px;white-space: normal;outline: 0px;max-width: 100%;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;visibility: visible;text-align: left;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"background-color: rgb(255, 255, 255);\"><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">\u7a7a\u95f4\u590d\u6742\u5ea6O(1)<\/span><\/strong><span style=\"background-color: rgb(255, 255, 255);color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\">:&nbsp;<\/span><span style=\"font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);color: rgb(255, 104, 39);background-color: rgb(255, 255, 255);letter-spacing: 0.544px;\"><\/span><span style=\"color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;caret-color: rgb(0, 0, 0);\"><span style=\"background-color: rgb(255, 255, 255);\">\u5e38\u6570\u7a7a\u95f4\u590d\u6742\u5ea6<\/span><span style=\"background-color: rgb(255, 255, 255);\">\u3002<\/span><\/span><span style=\"background-color: rgb(255, 255, 255);color: rgb(51, 51, 51);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;font-variant-ligatures: no-common-ligatures;font-weight: 600;letter-spacing: 0.544px;\"><\/span><\/p>\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>\u9898\u76ee \u7ed9\u4f60\u4e24\u4e2a\u6309 \u975e\u9012\u51cf\u987a\u5e8f \u6392\u5217\u7684\u6574\u6570\u6570\u7ec4 nums1&nbsp;\u548c nums2\uff0c\u53e6\u6709\u4e24\u4e2a\u6574\u6570 m&nbsp;\u548c n&nbsp; &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1553,"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-1561","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\/20230528043641910-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043643773.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043641910-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043641910-1024x435.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043643773.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043641910-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043641910-1024x435.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043641910.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043643773.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043643773.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043653645.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528043653645.png","id":"image3"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"\u7b97\u6cd5","post_date":"2023-06-27","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":310,"next_post_id":2484,"next_post_title":"Java\u4e2d\u5c06 int[] \u6570\u7ec4 \u8f6c\u6362\u4e3a List\uff08ArrayList\uff09","previous_post_id":1489,"previous_post_title":"\u3010\u7b97\u6cd5\u9898\u89e3\u301114. \u6709\u6548\u7684\u62ec\u53f7","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1561","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=1561"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1561\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/1553"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}