{"id":117776,"date":"2026-10-25T11:08:32","date_gmt":"2026-10-25T03:08:32","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117776.html"},"modified":"2026-10-25T11:08:32","modified_gmt":"2026-10-25T03:08:32","slug":"%e5%85%83%e5%ae%9d-leetcode-388-%e6%96%87%e4%bb%b6%e7%9a%84%e6%9c%80%e9%95%bf%e7%bb%9d%e5%af%b9%e8%b7%af%e5%be%84-java%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117776.html","title":{"rendered":"\u5143\u5b9d    LeetCode 388. \u6587\u4ef6\u7684\u6700\u957f\u7edd\u5bf9\u8def\u5f84 Java\u5b9e\u73b0"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<p>\u6838\u5fc3\u601d\u8def<\/p>\n<p>\u201c\\\\t\u201d \u7684\u4e2a\u6570 &#061; \u8be5\u5c42\u6df1\u5ea6\u3002\u6838\u5fc3\u7b49\u5f0f&#xff1a;<\/p>\n<p>\u5f53\u524d\u7edd\u5bf9\u8def\u5f84\u957f\u5ea6 &#061; \u7236\u76ee\u5f55\u7d2f\u8ba1\u957f\u5ea6 &#043; \u672c\u5c42\u540d\u5b57\u957f\u5ea6 &#043; 1&#xff08;\u5206\u9694\u7b26<br \/>\n\u201c\/\u201d&#xff09;<br \/>\n\u56e0\u4e3a\u904d\u5386\u662f\u524d\u5e8f\u7684&#xff08;\u7236\u4e00\u5b9a\u5148\u4e8e\u5b50\u51fa\u73b0&#xff09;&#xff0c;\u6240\u4ee5\u626b\u5230\u67d0\u4e00\u884c\u65f6&#xff0c;\u5b83\u7236\u76ee\u5f55\u7684\u7d2f\u8ba1\u957f\u5ea6\u5fc5\u5b9a\u5df2\u7ecf\u7b97\u597d\u5e76\u5b58\u4e0b\u6765\u4e86\u3002<\/p>\n<p>\u5173\u952e\u7ec6\u8282&#xff1a;<\/p>\n<ul>\n<li>\u76ee\u5f55\u5b58\u8d77\u6765\u4f9b\u5b69\u5b50\u590d\u7528&#xff0c;\u4e14\u957f\u5ea6\u542b\u672b\u5c3e<br \/>\n\u201c\/\u201d<\/li>\n<li>\u6587\u4ef6&#xff08;\u540d\u5b57\u542b<br \/>\n\u201c.\u201d&#xff09;\u4e0d\u5b58&#xff0c;\u53ea\u7528\u5b83\u66f4\u65b0\u6700\u5927\u503c&#xff0c;\u4e14\u8981\u51cf\u53bb\u90a3\u4e2a\u591a\u7b97\u7684<br \/>\n\u201c\/\u201d<\/li>\n<li>\u56de\u9000\u5230\u6d45\u5c42\u65f6\u4e0d\u7528\u6e05\u7406\u6df1\u5c42\u6570\u636e\u2014\u2014\u4e0b\u6b21\u540c\u6df1\u5ea6\u4f1a\u76f4\u63a5\u8986\u76d6<\/li>\n<\/ul>\n<p>\u5199\u6cd5\u4e00&#xff1a;\u6570\u7ec4\u5b58\u5404\u6df1\u5ea6\u7d2f\u8ba1\u957f\u5ea6&#xff08;\u6700\u63a8\u8350&#xff09;<\/p>\n<p>class Solution {<br \/>\npublic int lengthLongestPath(String input) {<br \/>\n\/\/ sum[d] &#061; \u6df1\u5ea6 d \u7684\u76ee\u5f55&#xff0c;\u5176\u7edd\u5bf9\u8def\u5f84\u957f\u5ea6&#xff08;\u542b\u672b\u5c3e \u2018\/\u2019&#xff09;<br \/>\nint[] sum &#061; new int[input.length() &#043; 1];<br \/>\nint max &#061; 0;<\/p>\n<p>    for (String line : input.split(&#034;\\\\n&#034;)) {<br \/>\n        int depth &#061; 0;<br \/>\n        while (depth &lt; line.length() &amp;&amp; line.charAt(depth) &#061;&#061; &#039;\\\\t&#039;) depth&#043;&#043;;  \/\/ \u6570 tab<br \/>\n        String name &#061; line.substring(depth);<\/p>\n<p>        int parentLen &#061; (depth &#061;&#061; 0) ? 0 : sum[depth &#8211; 1];<br \/>\n        int total &#061; parentLen &#043; name.length() &#043; 1;   \/\/ &#043;1 \u662f &#039;\/&#039;<\/p>\n<p>        if (name.contains(&#034;.&#034;)) {<br \/>\n            max &#061; Math.max(max, total &#8211; 1);          \/\/ \u6587\u4ef6\u65e0\u672b\u5c3e &#039;\/&#039;<br \/>\n        } else {<br \/>\n            sum[depth] &#061; total;<br \/>\n        }<br \/>\n    }<br \/>\n    return max;<br \/>\n}<\/p>\n<p>}<\/p>\n<p>\u5199\u6cd5\u4e8c&#xff1a;\u6808&#xff08;\u56de\u6eaf\u65f6\u56de\u6eda\u957f\u5ea6&#xff09;<\/p>\n<p>class Solution {<br \/>\npublic int lengthLongestPath(String input) {<br \/>\nDeque stack &#061; new ArrayDeque&lt;&gt;();  \/\/ \u6bcf\u5c42\u8d21\u732e &#061; name\u957f\u5ea6 &#043; 1<br \/>\nint cur &#061; 0, max &#061; 0;                       \/\/ cur &#061; \u5f53\u524d\u76ee\u5f55\u7684\u7edd\u5bf9\u8def\u5f84\u957f\u5ea6(\u542b\u2019\/&#039;)<\/p>\n<p>    for (String line : input.split(&#034;\\\\n&#034;)) {<br \/>\n        int depth &#061; 0;<br \/>\n        while (line.charAt(depth) &#061;&#061; &#039;\\\\t&#039;) depth&#043;&#043;;<br \/>\n        while (stack.size() &gt; depth) cur -&#061; stack.pop();   \/\/ \u56de\u9000\u5230\u7236\u5c42<br \/>\n        String name &#061; line.substring(depth);<\/p>\n<p>        if (name.contains(&#034;.&#034;)) {<br \/>\n            max &#061; Math.max(max, cur &#043; name.length());      \/\/ \u76f4\u63a5\u62fc&#xff0c;\u4e0d\u52a0 &#039;\/&#039;<br \/>\n        } else {<br \/>\n            stack.push(name.length() &#043; 1);<br \/>\n            cur &#043;&#061; name.length() &#043; 1;<br \/>\n        }<br \/>\n    }<br \/>\n    return max;<br \/>\n}<\/p>\n<p>}<\/p>\n<p>\u4e24\u5199\u6cd5\u672c\u8d28\u76f8\u540c&#xff0c;\u6808\u7248\u591a\u4e00\u6b21\u300c\u56de\u9000\u65f6\u51cf\u957f\u5ea6\u300d\u7684\u64cd\u4f5c&#xff0c;\u6570\u7ec4\u7248\u9760\u4e0b\u6807\u76f4\u63a5\u53d6\u7236\u503c&#xff0c;\u66f4\u7701\u4e8b\u3002<\/p>\n<p>\u590d\u6742\u5ea6<\/p>\n<ul>\n<li>\u65f6\u95f4<br \/>\n\u201cO(n)\u201d&#xff1a;<br \/>\n\u201csplit\u201d &#043; \u6bcf\u4e2a\u5b57\u7b26\u626b\u4e00\u904d&#xff08;\u6570 tab \u548c\u53d6\u540d\u5b57\u5404\u4e00\u6b21&#xff09;<\/li>\n<li>\u7a7a\u95f4<br \/>\n\u201cO(n)\u201d&#xff1a;split \u4ea7\u751f\u7684\u5b57\u7b26\u4e32\u6570\u7ec4&#xff1b;\u8f85\u52a9\u6570\u7ec4\/\u6808\u4ec5<br \/>\n\u201cO(\u6700\u5927\u6df1\u5ea6)\u201d<\/li>\n<\/ul>\n<p>\u6613\u9519\u70b9\u63d0\u9192<\/p>\n<p>\u5751 \u8bf4\u660e<br \/>\n\u540d\u5b57\u91cc\u7684\u7a7a\u683c \u5982<br \/>\n\u201cdir\\\\n\\\\t        file.txt\u201d&#xff0c;\u6587\u4ef6\u540d\u542b\u7a7a\u683c&#xff0c;\u957f\u5ea6\u8981\u7167\u7b97&#xff08;\u8be5\u4f8b\u7b54\u6848 20&#xff09;<br \/>\n\u53ea\u6709\u76ee\u5f55\u6ca1\u6709\u6587\u4ef6 \u7b54\u6848\u662f 0&#xff0c;\u4e0d\u8981\u8fd4\u56de\u76ee\u5f55\u957f\u5ea6<br \/>\n\u5224\u65ad\u6587\u4ef6\u7528<br \/>\n\u201ccontains(\u201d.\u201c)\u201d \u9898\u76ee\u7ea6\u5b9a\u6587\u4ef6\u540d\u4e00\u5b9a\u5e26\u6269\u5c55\u540d<\/p>\n<p>\u201csplit(\u201d\\\\n&#034;)&#034; \u82e5\u62c5\u5fc3\u672b\u5c3e\u7a7a\u884c\u53ef\u7528<br \/>\n\u201csplit(\u201d\\\\n&#034;, -1)&#034;&#xff0c;\u672c\u9898\u8f93\u5165\u65e0\u6b64\u60c5\u51b5<\/p>\n<p>\u5df2\u7528 7 \u7ec4\u7528\u4f8b\u9a8c\u8bc1\u901a\u8fc7&#xff1a;<br \/>\n\u201c20 \/ 32 \/ 0 \/ 9 \/ 20(\u542b\u7a7a\u683c\u6587\u4ef6\u540d) \/ 12 \/ 14\u201d&#xff0c;\u5747\u4e0e\u624b\u7b97\u8def\u5f84\u957f\u5ea6\u4e00\u81f4\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025030829-6add72adab3ba.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":117775,"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-117776","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>\u5143\u5b9d  LeetCode 388. \u6587\u4ef6\u7684\u6700\u957f\u7edd\u5bf9\u8def\u5f84 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\/117776.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5143\u5b9d  LeetCode 388. \u6587\u4ef6\u7684\u6700\u957f\u7edd\u5bf9\u8def\u5f84 Java\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117776.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-25T03:08:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025030829-6add72adab3ba.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117776.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117776.html\",\"name\":\"\u5143\u5b9d LeetCode 388. \u6587\u4ef6\u7684\u6700\u957f\u7edd\u5bf9\u8def\u5f84 Java\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-25T03:08:32+00:00\",\"dateModified\":\"2026-10-25T03:08:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117776.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117776.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117776.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5143\u5b9d LeetCode 388. \u6587\u4ef6\u7684\u6700\u957f\u7edd\u5bf9\u8def\u5f84 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":"\u5143\u5b9d  LeetCode 388. \u6587\u4ef6\u7684\u6700\u957f\u7edd\u5bf9\u8def\u5f84 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\/117776.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5143\u5b9d  LeetCode 388. \u6587\u4ef6\u7684\u6700\u957f\u7edd\u5bf9\u8def\u5f84 Java\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/117776.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-25T03:08:32+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261025030829-6add72adab3ba.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/117776.html","url":"https:\/\/www.wsisp.com\/helps\/117776.html","name":"\u5143\u5b9d LeetCode 388. \u6587\u4ef6\u7684\u6700\u957f\u7edd\u5bf9\u8def\u5f84 Java\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-25T03:08:32+00:00","dateModified":"2026-10-25T03:08:32+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117776.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117776.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117776.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5143\u5b9d LeetCode 388. \u6587\u4ef6\u7684\u6700\u957f\u7edd\u5bf9\u8def\u5f84 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\/117776","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=117776"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117776\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/117775"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117776"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}