{"id":79995,"date":"2026-03-03T23:17:47","date_gmt":"2026-03-03T15:17:47","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79995.html"},"modified":"2026-03-03T23:17:47","modified_gmt":"2026-03-03T15:17:47","slug":"leetcode-hot-100-%e4%b8%a4%e6%95%b0%e4%b9%8b%e5%92%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79995.html","title":{"rendered":"LeetCode Hot 100 \u4e24\u6570\u4e4b\u548c"},"content":{"rendered":"<h3>LeetCode Hot100 \u4e24\u6570\u4e4b\u548c  Java\u4ee3\u7801\u8be6\u7ec6\u6559\u7a0b<\/h3>\n<p>\u4e24\u6570\u4e4b\u548c\u4f5c\u4e3aLeetCode hot 100\u7684\u5165\u95e8\u9898\u76ee&#xff0c;\u5bf9\u4e8e\u521a\u5b66\u7b97\u6cd5\u7684\u5c0f\u767d\u6765\u8bf4\u8fd8\u662f\u6709\u4e00\u5b9a\u96be\u5ea6\u7684&#xff0c;\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u8bb2\u89e3\u5b83\u7684\u5b9e\u73b0\u601d\u8def\u548c\u4ee3\u7801\u903b\u8f91<\/p>\n<p>\u5b9e\u73b0\u601d\u8def&#xff1a;<\/p>\n<p>\u5bf9\u4e8e\u6570\u7ec4\u4e2d\u7684\u4e24\u6570\u4e4b\u548c\u8981\u7b49\u4e8e\u76ee\u6807\u503c&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u6570\u7ec4\u5143\u7d20\u6765\u5224\u65ad&#xff0c;\u662f\u5426\u6709\u7b26\u5408\u76f8\u52a0\u7b49\u4e8e\u76ee\u6807\u503c\u7684\u4e24\u4e2a\u5143\u7d20&#xff0c;\u6211\u4eec\u9700\u8981\u89e3\u51b3\u7684\u662f&#xff0c;\u5f53\u904d\u5386\u5230\u6570\u7ec4\u4e2d\u7684\u5176\u4e2d\u4e00\u4e2a\u5143\u7d20\u65f6&#xff0c;\u6211\u4eec\u5982\u4f55\u4ece\u524d\u9762\u5df2\u7ecf\u904d\u5386\u8fc7\u7684\u5143\u7d20\u4e2d&#xff0c;\u5feb\u901f\u627e\u5230\u7b26\u5408\u6761\u4ef6\u7684\u5143\u7d20&#xff0c;\u8fd9\u5c31\u9700\u8981\u4f7f\u7528\u5230HashMap\u96c6\u5408\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u4f7f\u7528\u54c8\u5e0c\u65b9\u6cd5\u6765\u89e3\u6b64\u9898&#xff1f;<\/p>\n<p>\u5bf9\u4e8e\u9700\u8981\u5224\u65ad\u67d0\u4e2a\u5143\u7d20\u662f\u5426\u51fa\u73b0\u8fc7&#xff0c;\u6216\u8005\u5224\u65ad\u67d0\u4e2a\u5143\u7d20\u662f\u5426\u5728\u96c6\u5408\u91cc\u51fa\u73b0\u8fc7\u65f6&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u54c8\u5e0c\u6cd5&#xff0c;\u4f7f\u7528\u4e00\u4e9b\u54c8\u5e0c\u8868\u7684\u7ed3\u6784\u6765\u5904\u7406\u3002<\/p>\n<p>\u5bf9\u4e8e\u6b64\u9898&#xff0c;\u56e0\u4e3a\u6211\u4eec\u5728\u904d\u5386\u6570\u7ec4\u5143\u7d20\u65f6&#xff0c;\u6211\u4eec\u8981\u5b58\u653e\u4e4b\u524d\u904d\u5386\u8fc7\u7684\u6570\u7ec4\u5143\u7d20&#xff0c;\u6bd4\u5982\u6211\u4eec\u904d\u5386\u5230\u67d0\u4e00\u4e2a\u5143\u7d207\u65f6&#xff0c;\u76ee\u6807\u503c\u4e3a9&#xff0c;\u6211\u4eec\u8981\u5224\u65ad\u4e00\u4e0b\u4e4b\u524d\u904d\u5386\u8fc7\u7684\u6570\u7ec4\u5143\u7d20\u4e2d&#xff0c;\u662f\u5426\u904d\u5386\u8fc7\u5143\u7d202&#xff0c;\u8ba9\u4e8c\u8005\u4e4b\u548c\u7b49\u4e8e\u76ee\u6807\u503c9\u3002<\/p>\n<p>\u5224\u65ad\u4e00\u4e2a\u5143\u7d20\u662f\u5426\u904d\u5386\u8fc7&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5c06\u904d\u5386\u8fc7\u7684\u5143\u7d20\u5b58\u5230\u4e00\u4e2a\u96c6\u5408\u4e2d&#xff0c;\u5f53\u6211\u4eec\u6bcf\u6b21\u904d\u5386\u5230\u65b0\u7684\u6570\u7ec4\u5143\u7d20\u65f6&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u5224\u65ad&#xff0c;\u9700\u8981\u5bfb\u627e\u7684\u5143\u7d20\u662f\u5426\u5728\u8fd9\u4e2a\u96c6\u5408\u4e2d\u51fa\u73b0\u8fc7\u3002\u5982\u679c\u5728\u8fd9\u4e2a\u96c6\u5408\u4e2d\u51fa\u73b0\u8fc7&#xff0c;\u90a3\u5c31\u662f\u4e4b\u524d\u5728\u6570\u7ec4\u4e2d\u904d\u5386\u8fc7\u6b64\u5143\u7d20\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u4f7f\u7528HashMap\u7ed3\u6784?<\/p>\n<p>\u7531\u4e8e\u6211\u4eec\u4e0d\u4ec5\u4ec5\u9700\u8981\u5224\u65ad\u6570\u7ec4\u5143\u7d20\u662f\u5426\u904d\u5386\u8fc7&#xff0c;\u4e24\u4e2a\u6570\u7ec4\u5143\u7d20\u76f8\u52a0\u662f\u5426\u7b49\u4e8e\u76ee\u6807\u503c&#xff0c;\u8fd8\u9700\u8981\u8fd4\u56de\u7b26\u5408\u6761\u4ef6\u7684\u4e24\u4e2a\u6570\u7ec4\u5143\u7d20\u7684\u4e0b\u6807&#xff0c;\u56e0\u6b64HashMap\u662f\u6700\u9002\u5408\u5b58\u50a8\u904d\u5386\u8fc7\u7684\u6570\u7ec4\u5143\u7d20&#xff0c;\u548c\u5b83\u7684\u6570\u7ec4\u4e0b\u6807\u7684\u3002<\/p>\n<p>\u540c\u65f6&#xff0c;\u6211\u4eec\u9700\u8981\u6ce8\u610f&#xff0c;\u6b64\u5904Map\u7684key\u5b58\u653e\u7684\u662f\u6570\u7ec4\u5143\u7d20&#xff0c;key\u5bf9\u5e94\u7684Value\u5b58\u653e\u7684\u6570\u7ec4\u5143\u7d20\u7684\u4e0b\u6807\u3002 \u539f\u56e0&#xff1a;\u6211\u4eec\u9700\u8981\u67e5\u627e\u7684\u662f\u4e00\u4e2a\u6570\u7ec4\u5143\u7d20\u662f\u5426\u5728\u96c6\u5408\u4e2d\u51fa\u73b0\u8fc7&#xff0c;\u6240\u4ee5\u6211\u4eec\u5fc5\u987b\u901a\u8fc7key\u6765\u5b58\u653e\u6570\u7ec4\u5143\u7d20&#xff0c;Map\u80fd\u5728\u6700\u77ed\u7684\u65f6\u95f4\u5185&#xff0c;\u67e5\u627e\u8fd9\u4e2akey\u662f\u5426\u5728Map\u4e2d\u51fa\u73b0\u8fc7\u3002<\/p>\n<p>\u5b9e\u73b0\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Solution<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">int<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token function\">twoSum<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> nums<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">int<\/span> target<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/\u4f7f\u7528HashMap\u5b58\u50a8\u904d\u5386\u8fc7\u7684\u6570\u7ec4\u5143\u7d20<\/span><br \/>\n        <span class=\"token class-name\">Map<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">Integer<\/span><span class=\"token punctuation\">,<\/span><span class=\"token class-name\">Integer<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> map <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">HashMap<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/for\u5faa\u73af\u904d\u5386nums\u6570\u7ec4<\/span><br \/>\n        <span class=\"token keyword\">for<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> nums<span class=\"token punctuation\">.<\/span>length <span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><\/p>\n<p>            <span class=\"token comment\">\/\/\u83b7\u53d6\u7b26\u5408\u6761\u4ef6\u7684key &#8212; \u76ee\u6807\u503c\u51cf\u53bb\u5f53\u524d\u904d\u5386\u7684\u6570\u7ec4\u5143\u7d20 \u5f97\u5230\u6211\u4eec\u9700\u8981\u5728\u96c6\u5408\u4e2d\u5bfb\u627e\u7684\u53e6\u4e00\u4e2a\u6570\u7ec4\u5143\u7d20<\/span><br \/>\n            <span class=\"token keyword\">int<\/span> temp <span class=\"token operator\">&#061;<\/span> target <span class=\"token operator\">&#8211;<\/span> nums<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token comment\">\/\/\u5224\u65admap\u4e2d\u662f\u5426\u904d\u5386\u8fc7\u8be5\u5143\u7d20&#xff0c;\u662f\u5426\u5b58\u5728\u8be5key<\/span><br \/>\n            <span class=\"token keyword\">if<\/span><span class=\"token punctuation\">(<\/span>map<span class=\"token punctuation\">.<\/span><span class=\"token function\">containsKey<\/span><span class=\"token punctuation\">(<\/span>temp<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">{<\/span><\/p>\n<p>                <span class=\"token keyword\">return<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token keyword\">int<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token punctuation\">{<\/span>map<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>temp<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span>i<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\">\/\/ \u6839\u636ekey(temp),\u83b7\u53d6\u5bf9\u5e94\u7684value(\u6570\u7ec4\u4e0b\u6807)<\/span><\/p>\n<p>            <span class=\"token punctuation\">}<\/span><\/p>\n<p>            <span class=\"token comment\">\/\/\u5c06\u904d\u5386\u8fc7\u7684\u6570\u7ec4\u5143\u7d20&#xff0c;\u5b58\u5165map\u96c6\u5408\u4e2d<\/span><br \/>\n            <span class=\"token comment\">\/\/\u8bb0\u5f97\u6b64\u5904\u662f\u5143\u7d20\u4f5c\u4e3akey&#xff0c;\u6570\u7ec4\u4e0b\u6807\u4e3avalue <\/span><br \/>\n            map<span class=\"token punctuation\">.<\/span><span class=\"token function\">put<\/span><span class=\"token punctuation\">(<\/span>nums<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span>i<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/\u6ca1\u627e\u5230&#xff0c;\u8fd4\u56de\u957f\u5ea6\u4e3a0\u7684\u7a7a\u6570\u7ec4<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token keyword\">int<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LeetCode Hot100 \u4e24\u6570\u4e4b\u548c  Java\u4ee3\u7801\u8be6\u7ec6\u6559\u7a0b<br \/>\n\u4e24\u6570\u4e4b\u548c\u4f5c\u4e3aLeetCode hot 100\u7684\u5165\u95e8\u9898\u76ee&#xff0c;\u5bf9\u4e8e\u521a\u5b66\u7b97\u6cd5\u7684\u5c0f\u767d\u6765\u8bf4\u8fd8\u662f\u6709\u4e00\u5b9a\u96be\u5ea6\u7684&#xff0c;\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u8bb2\u89e3\u5b83\u7684\u5b9e\u73b0\u601d\u8def\u548c\u4ee3\u7801\u903b\u8f91<br \/>\n\u5b9e\u73b0\u601d\u8def&#xff1a;<br \/>\n\u5bf9\u4e8e\u6570\u7ec4\u4e2d\u7684\u4e24\u6570\u4e4b\u548c\u8981\u7b49\u4e8e\u76ee\u6807\u503c&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u6570\u7ec4\u5143\u7d20\u6765\u5224\u65ad&#xff0c;\u662f\u5426\u6709\u7b26\u5408\u76f8\u52a0\u7b49\u4e8e\u76ee\u6807\u503c\u7684\u4e24\u4e2a\u5143\u7d20&#xff0c;\u6211\u4eec\u9700\u8981\u89e3\u51b3\u7684\u662f&#xff0c;\u5f53\u904d\u5386\u5230\u6570\u7ec4\u4e2d\u7684\u5176\u4e2d\u4e00\u4e2a\u5143\u7d20\u65f6&#xff0c;\u6211<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,2692,3520,2872],"topic":[],"class_list":["post-79995","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-leetcode","tag-3520","tag-2872"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LeetCode Hot 100 \u4e24\u6570\u4e4b\u548c - \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\/79995.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LeetCode Hot 100 \u4e24\u6570\u4e4b\u548c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"LeetCode Hot100 \u4e24\u6570\u4e4b\u548c Java\u4ee3\u7801\u8be6\u7ec6\u6559\u7a0b \u4e24\u6570\u4e4b\u548c\u4f5c\u4e3aLeetCode hot 100\u7684\u5165\u95e8\u9898\u76ee&#xff0c;\u5bf9\u4e8e\u521a\u5b66\u7b97\u6cd5\u7684\u5c0f\u767d\u6765\u8bf4\u8fd8\u662f\u6709\u4e00\u5b9a\u96be\u5ea6\u7684&#xff0c;\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u8bb2\u89e3\u5b83\u7684\u5b9e\u73b0\u601d\u8def\u548c\u4ee3\u7801\u903b\u8f91 \u5b9e\u73b0\u601d\u8def&#xff1a; \u5bf9\u4e8e\u6570\u7ec4\u4e2d\u7684\u4e24\u6570\u4e4b\u548c\u8981\u7b49\u4e8e\u76ee\u6807\u503c&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u6570\u7ec4\u5143\u7d20\u6765\u5224\u65ad&#xff0c;\u662f\u5426\u6709\u7b26\u5408\u76f8\u52a0\u7b49\u4e8e\u76ee\u6807\u503c\u7684\u4e24\u4e2a\u5143\u7d20&#xff0c;\u6211\u4eec\u9700\u8981\u89e3\u51b3\u7684\u662f&#xff0c;\u5f53\u904d\u5386\u5230\u6570\u7ec4\u4e2d\u7684\u5176\u4e2d\u4e00\u4e2a\u5143\u7d20\u65f6&#xff0c;\u6211\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79995.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-03T15:17:47+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"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\/79995.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79995.html\",\"name\":\"LeetCode Hot 100 \u4e24\u6570\u4e4b\u548c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-03T15:17:47+00:00\",\"dateModified\":\"2026-03-03T15:17:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79995.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79995.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79995.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LeetCode Hot 100 \u4e24\u6570\u4e4b\u548c\"}]},{\"@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":"LeetCode Hot 100 \u4e24\u6570\u4e4b\u548c - \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\/79995.html","og_locale":"zh_CN","og_type":"article","og_title":"LeetCode Hot 100 \u4e24\u6570\u4e4b\u548c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"LeetCode Hot100 \u4e24\u6570\u4e4b\u548c Java\u4ee3\u7801\u8be6\u7ec6\u6559\u7a0b \u4e24\u6570\u4e4b\u548c\u4f5c\u4e3aLeetCode hot 100\u7684\u5165\u95e8\u9898\u76ee&#xff0c;\u5bf9\u4e8e\u521a\u5b66\u7b97\u6cd5\u7684\u5c0f\u767d\u6765\u8bf4\u8fd8\u662f\u6709\u4e00\u5b9a\u96be\u5ea6\u7684&#xff0c;\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u8bb2\u89e3\u5b83\u7684\u5b9e\u73b0\u601d\u8def\u548c\u4ee3\u7801\u903b\u8f91 \u5b9e\u73b0\u601d\u8def&#xff1a; \u5bf9\u4e8e\u6570\u7ec4\u4e2d\u7684\u4e24\u6570\u4e4b\u548c\u8981\u7b49\u4e8e\u76ee\u6807\u503c&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u6570\u7ec4\u5143\u7d20\u6765\u5224\u65ad&#xff0c;\u662f\u5426\u6709\u7b26\u5408\u76f8\u52a0\u7b49\u4e8e\u76ee\u6807\u503c\u7684\u4e24\u4e2a\u5143\u7d20&#xff0c;\u6211\u4eec\u9700\u8981\u89e3\u51b3\u7684\u662f&#xff0c;\u5f53\u904d\u5386\u5230\u6570\u7ec4\u4e2d\u7684\u5176\u4e2d\u4e00\u4e2a\u5143\u7d20\u65f6&#xff0c;\u6211","og_url":"https:\/\/www.wsisp.com\/helps\/79995.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-03T15:17:47+00:00","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\/79995.html","url":"https:\/\/www.wsisp.com\/helps\/79995.html","name":"LeetCode Hot 100 \u4e24\u6570\u4e4b\u548c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-03T15:17:47+00:00","dateModified":"2026-03-03T15:17:47+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79995.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79995.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79995.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LeetCode Hot 100 \u4e24\u6570\u4e4b\u548c"}]},{"@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\/79995","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=79995"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79995\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79995"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}