{"id":102151,"date":"2026-09-08T08:16:59","date_gmt":"2026-09-08T00:16:59","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/102151.html"},"modified":"2026-09-08T08:16:59","modified_gmt":"2026-09-08T00:16:59","slug":"%e5%8d%83%e9%97%ae-leetcode-73-%e7%9f%a9%e9%98%b5%e7%bd%ae%e9%9b%b6-java%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/102151.html","title":{"rendered":"\u5343\u95ee    LeetCode 73. \u77e9\u9635\u7f6e\u96f6 Java\u5b9e\u73b0"},"content":{"rendered":"<p>\u8fd9\u9053\u9898\u7684\u6838\u5fc3\u8003\u70b9\u662f\u300c\u539f\u5730\u7b97\u6cd5\u300d&#xff08;In-place Algorithm&#xff09;&#xff0c;\u5373\u5728\u4e0d\u4f7f\u7528\u989d\u5916\u77e9\u9635\u7a7a\u95f4\u7684\u524d\u63d0\u4e0b\u5b8c\u6210\u4fee\u6539\u3002<\/p>\n<p>\u6838\u5fc3\u601d\u8def&#xff1a;\u590d\u7528\u9996\u884c\u9996\u5217\u4f5c\u4e3a\u6807\u8bb0<\/p>\n<p>\u6700\u76f4\u89c2\u7684\u89e3\u6cd5\u662f\u7528\u4e24\u4e2a\u6570\u7ec4\u8bb0\u5f55\u54ea\u4e9b\u884c\u3001\u54ea\u4e9b\u5217\u9700\u8981\u7f6e\u96f6&#xff0c;\u4f46\u8fd9\u9700\u8981 O(m&#043;n) \u7684\u989d\u5916\u7a7a\u95f4\u3002\u4e3a\u4e86\u8fbe\u5230 O(1) \u7684\u7a7a\u95f4\u590d\u6742\u5ea6&#xff0c;\u6211\u4eec\u53ef\u4ee5\u590d\u7528\u77e9\u9635\u7684\u7b2c\u4e00\u884c\u548c\u7b2c\u4e00\u5217\u6765\u5145\u5f53\u6807\u8bb0\u6570\u7ec4\u3002<\/p>\n<p>\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<li>\u8bb0\u5f55\u9996\u884c\u9996\u5217\u72b6\u6001&#xff1a;\u9996\u5148\u904d\u5386\u7b2c\u4e00\u884c\u548c\u7b2c\u4e00\u5217&#xff0c;\u68c0\u67e5\u5b83\u4eec\u672c\u8eab\u662f\u5426\u5305\u542b 0&#xff0c;\u5e76\u7528\u4e24\u4e2a\u5e03\u5c14\u53d8\u91cf&#xff08;\u5982 firstRowZero \u548c firstColZero&#xff09;\u8bb0\u5f55\u4e0b\u6765\u3002<\/li>\n<li>\u6807\u8bb0\u9636\u6bb5&#xff1a;\u904d\u5386\u77e9\u9635\u7684\u5176\u4f59\u90e8\u5206&#xff08;\u4ece\u7b2c 1 \u884c\u7b2c 1 \u5217\u5f00\u59cb&#xff09;\u3002\u5982\u679c\u53d1\u73b0 matrix[i][j] &#061;&#061; 0&#xff0c;\u5c31\u5c06\u5bf9\u5e94\u7684\u9996\u884c\u548c\u9996\u5217\u5143\u7d20\u7f6e\u4e3a 0&#xff08;\u5373 matrix[j] &#061; 0 \u548c matrix[i] &#061; 0&#xff09;\u3002<\/li>\n<li>\u7f6e\u96f6\u9636\u6bb5&#xff1a;\u518d\u6b21\u904d\u5386\u77e9\u9635\u7684\u5176\u4f59\u90e8\u5206&#xff0c;\u5982\u679c\u5f53\u524d\u5143\u7d20\u5bf9\u5e94\u7684\u9996\u884c\u6216\u9996\u5217\u6807\u8bb0\u4e3a 0&#xff0c;\u5c31\u5c06\u8be5\u5143\u7d20\u7f6e\u96f6\u3002<\/li>\n<li>\u5904\u7406\u9996\u884c\u9996\u5217&#xff1a;\u6700\u540e&#xff0c;\u6839\u636e\u7b2c\u4e00\u6b65\u8bb0\u5f55\u7684\u5e03\u5c14\u53d8\u91cf&#xff0c;\u51b3\u5b9a\u662f\u5426\u5c06\u7b2c\u4e00\u884c\u548c\u7b2c\u4e00\u5217\u5168\u90e8\u7f6e\u96f6\u3002<\/li>\n<p>Java \u4ee3\u7801\u5b9e\u73b0<\/p>\n<p>class Solution {<br \/>\npublic void setZeroes(int[][] matrix) {<br \/>\nint m &#061; matrix.length;<br \/>\nint n &#061; matrix[0].length;<\/p>\n<p>    \/\/ 1. \u68c0\u67e5\u9996\u884c\u548c\u9996\u5217\u662f\u5426\u539f\u672c\u5c31\u5305\u542b 0<br \/>\n    boolean firstRowZero &#061; false;<br \/>\n    boolean firstColZero &#061; false;<\/p>\n<p>    for (int i &#061; 0; i &lt; m; i&#043;&#043;) {<br \/>\n        if (matrix[i][0] &#061;&#061; 0) {<br \/>\n            firstColZero &#061; true;<br \/>\n            break;<br \/>\n        }<br \/>\n    }<br \/>\n    for (int j &#061; 0; j &lt; n; j&#043;&#043;) {<br \/>\n        if (matrix[0][j] &#061;&#061; 0) {<br \/>\n            firstRowZero &#061; true;<br \/>\n            break;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ 2. \u904d\u5386\u5185\u90e8\u77e9\u9635&#xff0c;\u5229\u7528\u9996\u884c\u9996\u5217\u4f5c\u4e3a\u6807\u8bb0<br \/>\n    for (int i &#061; 1; i &lt; m; i&#043;&#043;) {<br \/>\n        for (int j &#061; 1; j &lt; n; j&#043;&#043;) {<br \/>\n            if (matrix[i][j] &#061;&#061; 0) {<br \/>\n                matrix[i][0] &#061; 0; \/\/ \u6807\u8bb0\u7b2c i \u884c\u9700\u8981\u7f6e\u96f6<br \/>\n                matrix[0][j] &#061; 0; \/\/ \u6807\u8bb0\u7b2c j \u5217\u9700\u8981\u7f6e\u96f6<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ 3. \u6839\u636e\u6807\u8bb0&#xff0c;\u5c06\u5185\u90e8\u77e9\u9635\u5bf9\u5e94\u7684\u884c\u5217\u7f6e\u96f6<br \/>\n    for (int i &#061; 1; i &lt; m; i&#043;&#043;) {<br \/>\n        for (int j &#061; 1; j &lt; n; j&#043;&#043;) {<br \/>\n            if (matrix[i][0] &#061;&#061; 0 || matrix[0][j] &#061;&#061; 0) {<br \/>\n                matrix[i][j] &#061; 0;<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ 4. \u6700\u540e\u5904\u7406\u9996\u884c\u548c\u9996\u5217<br \/>\n    if (firstRowZero) {<br \/>\n        for (int j &#061; 0; j &lt; n; j&#043;&#043;) {<br \/>\n            matrix[0][j] &#061; 0;<br \/>\n        }<br \/>\n    }<br \/>\n    if (firstColZero) {<br \/>\n        for (int i &#061; 0; i &lt; m; i&#043;&#043;) {<br \/>\n            matrix[i][0] &#061; 0;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>}<\/p>\n<p>\u590d\u6742\u5ea6\u5206\u6790<\/p>\n<ul>\n<li>\u65f6\u95f4\u590d\u6742\u5ea6&#xff1a;O(m times n)&#xff0c;\u5176\u4e2d m \u548c n \u5206\u522b\u662f\u77e9\u9635\u7684\u884c\u6570\u548c\u5217\u6570\u3002\u6211\u4eec\u6700\u591a\u53ea\u9700\u8981\u904d\u5386\u6574\u4e2a\u77e9\u9635\u4e24\u5230\u4e09\u6b21\u3002<\/li>\n<li>\u7a7a\u95f4\u590d\u6742\u5ea6&#xff1a;O(1)&#xff0c;\u4ec5\u4f7f\u7528\u4e86\u51e0\u4e2a\u5e03\u5c14\u53d8\u91cf&#xff0c;\u8fbe\u5230\u4e86\u5e38\u91cf\u7ea7\u522b\u7684\u989d\u5916\u7a7a\u95f4\u8981\u6c42\u3002<\/li>\n<\/ul>\n<p>&#x1f4a1; \u907f\u5751\u6307\u5357<br \/>\n\u5728\u5904\u7406\u987a\u5e8f\u4e0a&#xff0c;\u4e00\u5b9a\u8981\u5148\u5904\u7406\u5185\u90e8\u77e9\u9635&#xff0c;\u6700\u540e\u518d\u5904\u7406\u9996\u884c\u9996\u5217\u3002\u5982\u679c\u63d0\u524d\u628a\u9996\u884c\u9996\u5217\u7f6e\u96f6\u4e86&#xff0c;\u540e\u7eed\u904d\u5386\u5185\u90e8\u77e9\u9635\u65f6\u5c31\u4f1a\u56e0\u4e3a\u8bfb\u5230\u9996\u884c\u9996\u5217\u7684 0 \u800c\u4ea7\u751f\u9519\u8bef\u7684\u8986\u76d6&#xff08;\u5bfc\u81f4\u6574\u4e2a\u77e9\u9635\u90fd\u88ab\u7f6e\u96f6&#xff09;\u3002<\/p>\n<p>\u8fd9\u79cd\u201c\u590d\u7528\u8fb9\u754c\u4f5c\u4e3a\u6807\u8bb0\u201d\u7684\u601d\u8def\u5728\u77e9\u9635\u9898\u91cc\u5f88\u7ecf\u5178\u3002\u63a5\u4e0b\u6765\u8981\u4e0d\u8981\u770b\u770b\u7c7b\u4f3c\u5957\u8def\u7684 LeetCode 48. \u65cb\u8f6c\u56fe\u50cf&#xff0c;\u5b83\u4e5f\u662f\u539f\u5730\u64cd\u4f5c\u7684\u7ecf\u5178&#xff1f;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260908001656-6a9f53f8761fc.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u9053\u9898\u7684\u6838\u5fc3\u8003\u70b9\u662f\u300c\u539f\u5730\u7b97\u6cd5\u300d&#xff08;In-place Algorithm&#xff09;&#xff0c;\u5373\u5728\u4e0d\u4f7f\u7528\u989d\u5916\u77e9\u9635\u7a7a\u95f4\u7684\u524d\u63d0\u4e0b\u5b8c\u6210\u4fee\u6539\u3002<br \/>\n\u6838\u5fc3\u601d\u8def&#xff1a;\u590d\u7528\u9996\u884c\u9996\u5217\u4f5c\u4e3a\u6807\u8bb0<br \/>\n\u6700\u76f4\u89c2\u7684\u89e3\u6cd5\u662f\u7528\u4e24\u4e2a\u6570\u7ec4\u8bb0\u5f55\u54ea\u4e9b\u884c\u3001\u54ea\u4e9b\u5217\u9700\u8981\u7f6e\u96f6&#xff0c;\u4f46\u8fd9\u9700\u8981 O(mn) \u7684\u989d\u5916\u7a7a\u95f4\u3002\u4e3a\u4e86\u8fbe\u5230 O(1) \u7684\u7a7a\u95f4\u590d\u6742\u5ea6&#xff0c;\u6211\u4eec\u53ef\u4ee5\u590d\u7528\u77e9\u9635\u7684\u7b2c\u4e00\u884c\u548c\u7b2c\u4e00\u5217\u6765\u5145\u5f53\u6807\u8bb0\u6570\u7ec4\u3002<br \/>\n\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b&#xff1a;<br \/>\n\u8bb0\u5f55\u9996\u884c\u9996\u5217\u72b6\u6001&#xff1a;\u9996\u5148\u904d\u5386\u7b2c\u4e00\u884c\u548c\u7b2c<\/p>\n","protected":false},"author":2,"featured_media":102150,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,2692,292,1813,427],"topic":[],"class_list":["post-102151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-leetcode","tag-292","tag-1813","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5343\u95ee  LeetCode 73. \u77e9\u9635\u7f6e\u96f6 Java\u5b9e\u73b0 - \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\/102151.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5343\u95ee  LeetCode 73. \u77e9\u9635\u7f6e\u96f6 Java\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u9053\u9898\u7684\u6838\u5fc3\u8003\u70b9\u662f\u300c\u539f\u5730\u7b97\u6cd5\u300d&#xff08;In-place Algorithm&#xff09;&#xff0c;\u5373\u5728\u4e0d\u4f7f\u7528\u989d\u5916\u77e9\u9635\u7a7a\u95f4\u7684\u524d\u63d0\u4e0b\u5b8c\u6210\u4fee\u6539\u3002 \u6838\u5fc3\u601d\u8def&#xff1a;\u590d\u7528\u9996\u884c\u9996\u5217\u4f5c\u4e3a\u6807\u8bb0 \u6700\u76f4\u89c2\u7684\u89e3\u6cd5\u662f\u7528\u4e24\u4e2a\u6570\u7ec4\u8bb0\u5f55\u54ea\u4e9b\u884c\u3001\u54ea\u4e9b\u5217\u9700\u8981\u7f6e\u96f6&#xff0c;\u4f46\u8fd9\u9700\u8981 O(mn) \u7684\u989d\u5916\u7a7a\u95f4\u3002\u4e3a\u4e86\u8fbe\u5230 O(1) \u7684\u7a7a\u95f4\u590d\u6742\u5ea6&#xff0c;\u6211\u4eec\u53ef\u4ee5\u590d\u7528\u77e9\u9635\u7684\u7b2c\u4e00\u884c\u548c\u7b2c\u4e00\u5217\u6765\u5145\u5f53\u6807\u8bb0\u6570\u7ec4\u3002 \u5177\u4f53\u6b65\u9aa4\u5982\u4e0b&#xff1a; \u8bb0\u5f55\u9996\u884c\u9996\u5217\u72b6\u6001&#xff1a;\u9996\u5148\u904d\u5386\u7b2c\u4e00\u884c\u548c\u7b2c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/102151.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-08T00:16:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260908001656-6a9f53f8761fc.jpg\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102151.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/102151.html\",\"name\":\"\u5343\u95ee LeetCode 73. \u77e9\u9635\u7f6e\u96f6 Java\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-08T00:16:59+00:00\",\"dateModified\":\"2026-09-08T00:16:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/102151.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/102151.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102151.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5343\u95ee LeetCode 73. \u77e9\u9635\u7f6e\u96f6 Java\u5b9e\u73b0\"}]},{\"@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":"\u5343\u95ee  LeetCode 73. \u77e9\u9635\u7f6e\u96f6 Java\u5b9e\u73b0 - \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\/102151.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5343\u95ee  LeetCode 73. \u77e9\u9635\u7f6e\u96f6 Java\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8fd9\u9053\u9898\u7684\u6838\u5fc3\u8003\u70b9\u662f\u300c\u539f\u5730\u7b97\u6cd5\u300d&#xff08;In-place Algorithm&#xff09;&#xff0c;\u5373\u5728\u4e0d\u4f7f\u7528\u989d\u5916\u77e9\u9635\u7a7a\u95f4\u7684\u524d\u63d0\u4e0b\u5b8c\u6210\u4fee\u6539\u3002 \u6838\u5fc3\u601d\u8def&#xff1a;\u590d\u7528\u9996\u884c\u9996\u5217\u4f5c\u4e3a\u6807\u8bb0 \u6700\u76f4\u89c2\u7684\u89e3\u6cd5\u662f\u7528\u4e24\u4e2a\u6570\u7ec4\u8bb0\u5f55\u54ea\u4e9b\u884c\u3001\u54ea\u4e9b\u5217\u9700\u8981\u7f6e\u96f6&#xff0c;\u4f46\u8fd9\u9700\u8981 O(mn) \u7684\u989d\u5916\u7a7a\u95f4\u3002\u4e3a\u4e86\u8fbe\u5230 O(1) \u7684\u7a7a\u95f4\u590d\u6742\u5ea6&#xff0c;\u6211\u4eec\u53ef\u4ee5\u590d\u7528\u77e9\u9635\u7684\u7b2c\u4e00\u884c\u548c\u7b2c\u4e00\u5217\u6765\u5145\u5f53\u6807\u8bb0\u6570\u7ec4\u3002 \u5177\u4f53\u6b65\u9aa4\u5982\u4e0b&#xff1a; \u8bb0\u5f55\u9996\u884c\u9996\u5217\u72b6\u6001&#xff1a;\u9996\u5148\u904d\u5386\u7b2c\u4e00\u884c\u548c\u7b2c","og_url":"https:\/\/www.wsisp.com\/helps\/102151.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-08T00:16:59+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260908001656-6a9f53f8761fc.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/102151.html","url":"https:\/\/www.wsisp.com\/helps\/102151.html","name":"\u5343\u95ee LeetCode 73. \u77e9\u9635\u7f6e\u96f6 Java\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-08T00:16:59+00:00","dateModified":"2026-09-08T00:16:59+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/102151.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/102151.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/102151.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5343\u95ee LeetCode 73. \u77e9\u9635\u7f6e\u96f6 Java\u5b9e\u73b0"}]},{"@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\/102151","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=102151"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/102151\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/102150"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=102151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=102151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=102151"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=102151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}