{"id":61945,"date":"2026-01-18T21:18:10","date_gmt":"2026-01-18T13:18:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/61945.html"},"modified":"2026-01-18T21:18:10","modified_gmt":"2026-01-18T13:18:10","slug":"%e5%8a%9b%e6%89%a3hot100%e5%93%88%e5%b8%8c%e8%a1%a8%e4%b8%93%e9%a2%98%e8%a7%a3%e6%9e%90%ef%bc%88c%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/61945.html","title":{"rendered":"\u529b\u6263hot100\u54c8\u5e0c\u8868\u4e13\u9898\u89e3\u6790\uff08C++\uff09"},"content":{"rendered":"<p>\u6700\u8fd1\u5728\u5907\u6218\u84dd\u6865\u676f&#xff0c;\u5237\u529b\u6263\u7684 Hot 100 \u9898\u76ee&#xff0c;\u60f3\u548c\u5927\u5bb6\u5206\u4eab\u51e0\u9053\u5173\u4e8e\u54c8\u5e0c\u8868\u7684\u7ecf\u5178\u9898\u76ee\u3002\u8fd9\u51e0\u9053\u9898\u8986\u76d6\u4e86\u54c8\u5e0c\u8868\u7684\u51e0\u4e2a\u6838\u5fc3\u5e94\u7528\u573a\u666f&#xff0c;\u89e3\u9898\u8fc7\u7a0b\u4e2d\u4e5f\u8ba9\u6211\u5bf9\u54c8\u5e0c\u8868\u6709\u4e86\u66f4\u6df1\u7684\u7406\u89e3\u3002\u4e0b\u9762\u6211\u5c06\u5206\u4eab\u6bcf\u9053\u9898\u7684\u89e3\u9898\u5fc3\u8def\u5386\u7a0b\u548c\u4ee3\u7801\u5b9e\u73b0\u3002\u5982\u679c\u5bf9\u5176\u4e2d\u7684\u4e00\u4e9b\u57fa\u672c\u7528\u6cd5\u6709\u7591\u95ee\u7684\u670b\u53cb\u4e5f\u53ef\u4ee5\u53c2\u8003\u6211\u4e4b\u524d\u5199\u7684\u4e00\u4e2a\u7b80\u5355\u7528\u6cd5\u603b\u7ed3\u5907\u6218\u84dd\u6865\u676f-\u54c8\u5e0c\u3002<\/p>\n<h3>\u4e00\u3001\u4e24\u6570\u4e4b\u548c&#xff1a;\u4ece\u66b4\u529b\u679a\u4e3e\u5230\u54c8\u5e0c\u4f18\u5316<\/h3>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"600\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118131809-696cdd91217b2.png\" width=\"498\" \/><\/p>\n<p>&#xff08;\u53ea\u6709\u4e00\u4e2a\u6709\u6548\u7b54\u6848&#xff09;<\/p>\n<p>\u8fd9\u9053\u9898\u7684\u8981\u6c42\u5f88\u660e\u786e&#xff1a;\u5728\u4e00\u4e2a\u6574\u6570\u6570\u7ec4\u4e2d\u627e\u5230\u4e24\u4e2a\u6570&#xff0c;\u4f7f\u5b83\u4eec\u7684\u548c\u7b49\u4e8e\u7ed9\u5b9a\u7684\u76ee\u6807\u503c&#xff0c;\u5e76\u8fd4\u56de\u8fd9\u4e24\u4e2a\u6570\u7684\u4e0b\u6807\u3002<\/p>\n<p>\u6211\u7684\u7b2c\u4e00\u53cd\u5e94\u662f\u66b4\u529b\u679a\u4e3e&#xff0c;\u7528\u4e24\u5c42\u5faa\u73af\u904d\u5386\u6240\u6709\u53ef\u80fd\u7684\u7ec4\u5408\u3002\u4f46\u8fd9\u6837\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u662f O(n\u00b2)&#xff0c;\u6211\u4eec\u9700\u8981\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u3002<\/p>\n<p>\u89e3\u9898\u7684\u5173\u952e\u5728\u4e8e&#xff1a;\u5f53\u6211\u4eec\u904d\u5386\u6570\u7ec4\u65f6&#xff0c;\u5bf9\u4e8e\u5f53\u524d\u7684\u6570\u5b57\u00a0nums[i]&#xff0c;\u6211\u4eec\u5176\u5b9e\u60f3\u77e5\u9053\u7684\u662f\u00a0target &#8211; nums[i]\u00a0\u8fd9\u4e2a\u503c\u662f\u5426\u5728\u6570\u7ec4\u4e2d\u51fa\u73b0\u8fc7&#xff0c;\u4ee5\u53ca\u5b83\u7684\u4f4d\u7f6e\u5728\u54ea\u91cc\u3002\u5982\u679c\u80fd\u5feb\u901f\u67e5\u8be2\u5230\u8fd9\u4e2a\u4fe1\u606f&#xff0c;\u95ee\u9898\u5c31\u7b80\u5355\u4e86\u3002<\/p>\n<p>\u8fd9\u65f6\u54c8\u5e0c\u8868\u5c31\u6d3e\u4e0a\u7528\u573a\u4e86\u3002\u6211\u53ef\u4ee5\u7528\u4e00\u4e2a\u54c8\u5e0c\u8868\u6765\u8bb0\u5f55\u6bcf\u4e2a\u6570\u5b57\u548c\u5b83\u5bf9\u5e94\u7684\u4e0b\u6807\u3002\u5728\u904d\u5386\u8fc7\u7a0b\u4e2d&#xff0c;\u5bf9\u4e8e\u6bcf\u4e2a\u6570\u5b57&#xff0c;\u5148\u68c0\u67e5\u00a0target &#8211; nums[i]\u00a0\u662f\u5426\u5df2\u7ecf\u5728\u54c8\u5e0c\u8868\u4e2d&#xff0c;\u5982\u679c\u5728&#xff0c;\u76f4\u63a5\u8fd4\u56de\u7ed3\u679c&#xff1b;\u5982\u679c\u4e0d\u5728&#xff0c;\u5c31\u628a\u5f53\u524d\u6570\u5b57\u548c\u4e0b\u6807\u5b58\u5165\u54c8\u5e0c\u8868&#xff0c;\u7ee7\u7eed\u904d\u5386\u3002<\/p>\n<p>\u8fd9\u6837\u53ea\u9700\u8981\u904d\u5386\u4e00\u6b21\u6570\u7ec4&#xff0c;\u65f6\u95f4\u590d\u6742\u5ea6\u964d\u5230\u4e86 O(n)\u3002\u9700\u8981\u6ce8\u610f\u7684\u4e00\u70b9\u662f&#xff0c;\u9898\u76ee\u8981\u6c42\u4e0d\u80fd\u4f7f\u7528\u76f8\u540c\u7684\u5143\u7d20\u4e24\u6b21&#xff0c;\u4f46\u7531\u4e8e\u6211\u4eec\u662f\u8fb9\u67e5\u8fb9\u5b58&#xff0c;\u4e14\u5148\u67e5\u8be2\u540e\u5b58\u50a8&#xff0c;\u6240\u4ee5\u4e0d\u4f1a\u51fa\u73b0\u4f7f\u7528\u540c\u4e00\u4e2a\u5143\u7d20\u4e24\u6b21\u7684\u60c5\u51b5\u3002<\/p>\n<p>cpp<\/p>\n<p>class Solution {<br \/>\npublic:<br \/>\n    vector&lt;int&gt; twoSum(vector&lt;int&gt;&amp; nums, int target) {<br \/>\n        unordered_map&lt;int, int&gt; hashMap;<br \/>\n        for(int i &#061; 0; i &lt; nums.size(); i&#043;&#043;) {<br \/>\n            int complement &#061; target &#8211; nums[i];<br \/>\n            if(hashMap.find(complement) !&#061; hashMap.end()) {<br \/>\n                return {i, hashMap[complement]};<br \/>\n            }<br \/>\n            hashMap[nums[i]] &#061; i;<br \/>\n        }<br \/>\n        return {};<br \/>\n    }<br \/>\n}; <\/p>\n<h3>\u4e8c\u3001\u5b57\u6bcd\u5f02\u4f4d\u8bcd\u5206\u7ec4&#xff1a;\u8bbe\u8ba1\u54c8\u5e0c\u8868\u7684\u952e<\/h3>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"700\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118131809-696cdd913fb0d.png\" width=\"478\" \/><\/p>\n<p>&#xff08;\u53ea\u6709\u5c0f\u5199\u5b57\u6bcd&#xff09;<\/p>\n<p>\u8fd9\u9053\u9898\u8981\u628a\u5b57\u6bcd\u5f02\u4f4d\u8bcd&#xff08;\u7531\u76f8\u540c\u5b57\u6bcd\u91cd\u6392\u5f62\u6210\u7684\u8bcd&#xff09;\u5206\u5230\u540c\u4e00\u7ec4\u3002\u521d\u770b\u9898\u76ee&#xff0c;\u53ef\u80fd\u4f1a\u89c9\u5f97\u9700\u8981\u9010\u4e2a\u6bd4\u8f83\u5b57\u7b26\u4e32\u662f\u5426\u4e92\u4e3a\u5b57\u6bcd\u5f02\u4f4d\u8bcd&#xff0c;\u4f46\u90a3\u6837\u6548\u7387\u592a\u4f4e\u3002<\/p>\n<p>\u5173\u952e\u5728\u4e8e\u627e\u5230\u4e00\u4e2a\u65b9\u6cd5&#xff0c;\u80fd\u8ba9\u6240\u6709\u5b57\u6bcd\u5f02\u4f4d\u8bcd\u5177\u6709\u76f8\u540c\u7684\u201c\u7279\u5f81\u201d&#xff0c;\u7136\u540e\u4ee5\u8fd9\u4e2a\u7279\u5f81\u4f5c\u4e3a\u54c8\u5e0c\u8868\u7684\u952e\u3002\u6700\u76f4\u63a5\u7684\u60f3\u6cd5\u662f\u628a\u6bcf\u4e2a\u5b57\u7b26\u4e32\u6392\u5e8f&#xff0c;\u56e0\u4e3a\u6392\u5e8f\u540e\u7684\u5b57\u6bcd\u5f02\u4f4d\u8bcd\u4f1a\u53d8\u6210\u76f8\u540c\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<p>\u6bd4\u5982&#xff0c;&#034;eat&#034;\u3001&#034;tea&#034;\u3001&#034;ate&#034; \u6392\u5e8f\u540e\u90fd\u53d8\u6210 &#034;aet&#034;\u3002\u8fd9\u6837\u6211\u5c31\u53ef\u4ee5\u7528\u6392\u5e8f\u540e\u7684\u5b57\u7b26\u4e32\u4f5c\u4e3a\u952e&#xff0c;\u628a\u539f\u59cb\u5b57\u7b26\u4e32\u4f5c\u4e3a\u503c\u5b58\u5165\u54c8\u5e0c\u8868\u3002\u904d\u5386\u5b8c\u6240\u6709\u5b57\u7b26\u4e32\u540e&#xff0c;\u54c8\u5e0c\u8868\u4e2d\u6bcf\u4e2a\u952e\u5bf9\u5e94\u7684\u503c\u5217\u8868\u5c31\u662f\u4e00\u7ec4\u5b57\u6bcd\u5f02\u4f4d\u8bcd\u3002<\/p>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u5de7\u5999\u4e4b\u5904\u5728\u4e8e&#xff0c;\u5b83\u628a\u6bd4\u8f83\u5b57\u6bcd\u5f02\u4f4d\u8bcd\u7684\u590d\u6742\u5ea6\u964d\u4f4e\u4e86\u3002<\/p>\n<p>cpp<\/p>\n<p>class Solution {<br \/>\npublic:<br \/>\n    vector&lt;vector&lt;string&gt;&gt; groupAnagrams(vector&lt;string&gt;&amp; strs) {<br \/>\n        unordered_map&lt;string, vector&lt;string&gt;&gt; hashMap;<\/p>\n<p>        for(string &amp;str : strs) {<br \/>\n            string key &#061; str;<br \/>\n            sort(key.begin(), key.end());<br \/>\n            hashMap[key].push_back(str);<br \/>\n        }<\/p>\n<p>        vector&lt;vector&lt;string&gt;&gt; result;<br \/>\n        for(auto &amp;pair : hashMap) {<br \/>\n            result.push_back(pair.second);<br \/>\n        }<\/p>\n<p>        return result;<br \/>\n    }<br \/>\n}; <\/p>\n<h3 style=\"background-color:transparent\">\u4e09\u3001\u6700\u957f\u8fde\u7eed\u5e8f\u5217&#xff1a;\u54c8\u5e0c\u96c6\u5408\u7684\u5999\u7528<\/h3>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"600\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118131809-696cdd919e098.png\" width=\"549\" \/><\/p>\n<p>\u8fd9\u9053\u9898\u8981\u6c42\u627e\u51fa\u6570\u5b57\u8fde\u7eed\u7684\u6700\u957f\u5e8f\u5217\u957f\u5ea6&#xff0c;\u5e76\u4e14\u8981\u6c42 O(n) \u65f6\u95f4\u590d\u6742\u5ea6\u3002\u6700\u76f4\u63a5\u7684\u60f3\u6cd5\u662f\u5148\u6392\u5e8f&#xff0c;\u7136\u540e\u904d\u5386\u7edf\u8ba1\u8fde\u7eed\u5e8f\u5217\u7684\u957f\u5ea6&#xff0c;\u4f46\u662f\u4e0d\u80fdsort\u6392\u5e8f\u6216\u8005set\u81ea\u52a8\u6392\u5e8f&#xff08;\u6392\u5e8f\u662f O(n log n)&#xff09;&#xff0c;\u9700\u8981\u5229\u7528\u54c8\u5e0c\u96c6\u5408&#xff08;unordered_set&#xff09;\u6765\u5b9e\u73b0\u3002<\/p>\n<p>\u54c8\u5e0c\u96c6\u5408\u63d0\u4f9b\u4e86 O(1) \u7684\u67e5\u627e\u80fd\u529b\u3002\u6211\u53ef\u4ee5\u5148\u628a\u6240\u6709\u6570\u5b57\u5b58\u5165\u96c6\u5408\u53bb\u91cd\u3002\u7136\u540e\u904d\u5386\u96c6\u5408\u4e2d\u7684\u6bcf\u4e2a\u6570\u5b57&#xff0c;\u4f46\u6211\u53ea\u5173\u5fc3\u90a3\u4e9b\u53ef\u80fd\u662f\u5e8f\u5217\u8d77\u70b9\u7684\u6570\u5b57\u2014\u2014\u5373\u5b83\u7684\u524d\u4e00\u4e2a\u6570\u5b57\u4e0d\u5728\u96c6\u5408\u4e2d\u3002<\/p>\n<p>\u5bf9\u4e8e\u6bcf\u4e2a\u53ef\u80fd\u7684\u8d77\u70b9&#xff0c;\u6211\u5411\u540e\u8fde\u7eed\u67e5\u627e&#xff0c;\u76f4\u5230\u627e\u4e0d\u5230\u4e0b\u4e00\u4e2a\u6570\u5b57\u4e3a\u6b62&#xff0c;\u8fd9\u6837\u5c31\u5f97\u5230\u4e86\u4ee5\u8fd9\u4e2a\u6570\u5b57\u4e3a\u8d77\u70b9\u7684\u8fde\u7eed\u5e8f\u5217\u957f\u5ea6\u3002\u5728\u904d\u5386\u8fc7\u7a0b\u4e2d\u8bb0\u5f55\u6700\u5927\u957f\u5ea6\u5373\u53ef\u3002<\/p>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4e4b\u6240\u4ee5\u662f O(n)&#xff0c;\u662f\u56e0\u4e3a\u6bcf\u4e2a\u6570\u5b57\u6700\u591a\u88ab\u8bbf\u95ee\u4e24\u6b21&#xff1a;\u4e00\u6b21\u662f\u4f5c\u4e3a\u5e8f\u5217\u8d77\u70b9\u88ab\u68c0\u67e5&#xff0c;\u4e00\u6b21\u662f\u4f5c\u4e3a\u5e8f\u5217\u4e2d\u95f4\u5143\u7d20\u88ab\u8df3\u8fc7&#xff08;\u56e0\u4e3a\u5982\u679c\u5b83\u524d\u4e00\u4e2a\u6570\u5b57\u5b58\u5728&#xff0c;\u5b83\u5c31\u4e0d\u4f1a\u4f5c\u4e3a\u8d77\u70b9\u88ab\u5904\u7406&#xff09;\u3002<\/p>\n<p>cpp<\/p>\n<p>class Solution {<br \/>\npublic:<br \/>\n    int longestConsecutive(vector&lt;int&gt;&amp; nums) {<br \/>\n        if(nums.empty()) return 0;<\/p>\n<p>        unordered_set&lt;int&gt; numSet(nums.begin(), nums.end());<br \/>\n        int longest &#061; 1;<\/p>\n<p>        for(int num : numSet) {<br \/>\n            \/\/ \u53ea\u4ece\u53ef\u80fd\u7684\u5e8f\u5217\u8d77\u70b9\u5f00\u59cb<br \/>\n            if(!numSet.count(num &#8211; 1)) {<br \/>\n                int currNum &#061; num;<br \/>\n                int currLong &#061; 1;<\/p>\n<p>                \/\/ \u5411\u540e\u5ef6\u4f38\u5e8f\u5217<br \/>\n                while(numSet.count(currNum &#043; 1)) {<br \/>\n                    currNum&#043;&#043;;<br \/>\n                    currLong&#043;&#043;;<br \/>\n                }<\/p>\n<p>                longest &#061; max(longest, currLong);<br \/>\n            }<br \/>\n        }<\/p>\n<p>        return longest;<br \/>\n    }<br \/>\n}; <\/p>\n<h3 style=\"background-color:transparent\">\u56db\u3001\u89e3\u9898\u5fc3\u5f97\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h3>\n<p>\u901a\u8fc7\u8fd9\u4e09\u9053\u9898&#xff0c;\u6211\u5bf9\u54c8\u5e0c\u8868\u7684\u7406\u89e3\u66f4\u52a0\u6df1\u5165\u4e86\u3002\u54c8\u5e0c\u8868\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e\u63d0\u4f9b O(1) \u7684\u67e5\u627e\u80fd\u529b&#xff0c;\u8fd9\u5728\u4f18\u5316\u7b97\u6cd5\u65f6\u975e\u5e38\u5173\u952e\u3002<\/p>\n<p>\u51e0\u70b9\u63d0\u9192&#xff1a;<\/p>\n<li>\n<p>\u8bbe\u8ba1\u5408\u9002\u7684\u54c8\u5e0c\u952e\u5f88\u91cd\u8981\u3002\u5728\u5b57\u6bcd\u5f02\u4f4d\u8bcd\u5206\u7ec4\u4e2d&#xff0c;\u5982\u679c\u76f4\u63a5\u7528\u539f\u59cb\u5b57\u7b26\u4e32\u4f5c\u4e3a\u952e&#xff0c;\u5c31\u65e0\u6cd5\u5b9e\u73b0\u5206\u7ec4&#xff1b;\u800c\u6392\u5e8f\u540e\u7684\u5b57\u7b26\u4e32\u5b8c\u7f8e\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p>\u8003\u8651\u8fb9\u754c\u60c5\u51b5\u3002\u6bd4\u5982\u6570\u7ec4\u4e3a\u7a7a\u3001\u53ea\u6709\u4e00\u4e2a\u5143\u7d20\u3001\u6240\u6709\u5143\u7d20\u90fd\u76f8\u540c\u7b49\u60c5\u51b5\u3002<\/p>\n<\/li>\n<li>\n<p>\u6ce8\u610f\u65f6\u95f4\u590d\u6742\u5ea6\u5206\u6790\u3002\u6700\u957f\u8fde\u7eed\u5e8f\u5217\u7684\u89e3\u6cd5\u770b\u4f3c\u6709\u4e24\u5c42\u5faa\u73af&#xff0c;\u4f46\u6bcf\u4e2a\u5143\u7d20\u6700\u591a\u88ab\u8bbf\u95ee\u4e24\u6b21&#xff0c;\u56e0\u6b64\u603b\u4f53\u662f O(n) \u7684\u3002<\/p>\n<\/li>\n<p>\u54c8\u5e0c\u8868\u786e\u5b9e\u662f\u7b97\u6cd5\u7ade\u8d5b\u4e2d\u7684\u5229\u5668\u3002\u5b83\u80fd\u628a\u5f88\u591a\u770b\u4f3c\u590d\u6742\u7684\u95ee\u9898\u7b80\u5316&#xff0c;\u628a O(n\u00b2) \u7684\u66b4\u529b\u89e3\u6cd5\u4f18\u5316\u5230 O(n)\u3002\u4f46\u4e5f\u8981\u6ce8\u610f\u54c8\u5e0c\u8868\u7684\u7a7a\u95f4\u5f00\u9500&#xff0c;\u4ee5\u53ca\u5728\u5904\u7406\u81ea\u5b9a\u4e49\u7c7b\u578b\u65f6\u9700\u8981\u63d0\u4f9b\u54c8\u5e0c\u51fd\u6570\u7b49\u95ee\u9898\u3002<\/p>\n<p>\u8fd9\u4e09\u9053\u9898\u4ece\u4e0d\u540c\u89d2\u5ea6\u5c55\u793a\u4e86\u54c8\u5e0c\u8868\u7684\u5e94\u7528&#xff0c;\u65e2\u6709\u76f4\u63a5\u7684\u67e5\u627e\u4f18\u5316&#xff0c;\u4e5f\u6709\u5de7\u5999\u7684\u952e\u8bbe\u8ba1&#xff0c;\u8fd8\u6709\u7ed3\u5408\u96c6\u5408\u7279\u6027\u7684\u9ad8\u6548\u7b97\u6cd5\u3002\u638c\u63e1\u8fd9\u4e9b\u6a21\u5f0f\u540e&#xff0c;\u9047\u5230\u7c7b\u4f3c\u95ee\u9898\u5c31\u80fd\u5feb\u901f\u60f3\u5230\u5408\u9002\u7684\u89e3\u6cd5\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u5907\u6218\u84dd\u6865\u676f&#xff0c;\u5237\u529b\u6263\u7684 Hot 100 \u9898\u76ee&#xff0c;\u60f3\u548c\u5927\u5bb6\u5206\u4eab\u51e0\u9053\u5173\u4e8e\u54c8\u5e0c\u8868\u7684\u7ecf\u5178\u9898\u76ee\u3002\u8fd9\u51e0\u9053\u9898\u8986\u76d6\u4e86\u54c8\u5e0c\u8868\u7684\u51e0\u4e2a\u6838\u5fc3\u5e94\u7528\u573a\u666f&#xff0c;\u89e3\u9898\u8fc7\u7a0b\u4e2d\u4e5f\u8ba9\u6211\u5bf9\u54c8\u5e0c\u8868\u6709\u4e86\u66f4\u6df1\u7684\u7406\u89e3\u3002\u4e0b\u9762\u6211\u5c06\u5206\u4eab\u6bcf\u9053\u9898\u7684\u89e3\u9898\u5fc3\u8def\u5386\u7a0b\u548c\u4ee3\u7801\u5b9e\u73b0\u3002\u5982\u679c\u5bf9\u5176\u4e2d\u7684\u4e00\u4e9b\u57fa\u672c\u7528\u6cd5\u6709\u7591\u95ee\u7684\u670b\u53cb\u4e5f\u53ef\u4ee5\u53c2\u8003\u6211\u4e4b\u524d\u5199\u7684\u4e00\u4e2a\u7b80\u5355\u7528\u6cd5\u603b\u7ed3\u5907\u6218\u84dd\u6865\u676f-\u54c8\u5e0c\u3002<br \/>\n\u4e00\u3001\u4e24\u6570\u4e4b\u548c&#xff1a;\u4ece\u66b4\u529b\u679a\u4e3e\u5230\u54c8\u5e0c\u4f18\u5316 &#xff08;\u53ea\u6709\u4e00\u4e2a\u6709\u6548\u7b54\u6848&#xff09;<br \/>\n\u8fd9\u9053\u9898\u7684\u8981\u6c42\u5f88\u660e\u786e&amp;#xff1<\/p>\n","protected":false},"author":2,"featured_media":61942,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,3520,371,729],"topic":[],"class_list":["post-61945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-c","tag-3520","tag-371","tag-729"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u529b\u6263hot100\u54c8\u5e0c\u8868\u4e13\u9898\u89e3\u6790\uff08C++\uff09 - \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\/61945.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u529b\u6263hot100\u54c8\u5e0c\u8868\u4e13\u9898\u89e3\u6790\uff08C++\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6700\u8fd1\u5728\u5907\u6218\u84dd\u6865\u676f&#xff0c;\u5237\u529b\u6263\u7684 Hot 100 \u9898\u76ee&#xff0c;\u60f3\u548c\u5927\u5bb6\u5206\u4eab\u51e0\u9053\u5173\u4e8e\u54c8\u5e0c\u8868\u7684\u7ecf\u5178\u9898\u76ee\u3002\u8fd9\u51e0\u9053\u9898\u8986\u76d6\u4e86\u54c8\u5e0c\u8868\u7684\u51e0\u4e2a\u6838\u5fc3\u5e94\u7528\u573a\u666f&#xff0c;\u89e3\u9898\u8fc7\u7a0b\u4e2d\u4e5f\u8ba9\u6211\u5bf9\u54c8\u5e0c\u8868\u6709\u4e86\u66f4\u6df1\u7684\u7406\u89e3\u3002\u4e0b\u9762\u6211\u5c06\u5206\u4eab\u6bcf\u9053\u9898\u7684\u89e3\u9898\u5fc3\u8def\u5386\u7a0b\u548c\u4ee3\u7801\u5b9e\u73b0\u3002\u5982\u679c\u5bf9\u5176\u4e2d\u7684\u4e00\u4e9b\u57fa\u672c\u7528\u6cd5\u6709\u7591\u95ee\u7684\u670b\u53cb\u4e5f\u53ef\u4ee5\u53c2\u8003\u6211\u4e4b\u524d\u5199\u7684\u4e00\u4e2a\u7b80\u5355\u7528\u6cd5\u603b\u7ed3\u5907\u6218\u84dd\u6865\u676f-\u54c8\u5e0c\u3002 \u4e00\u3001\u4e24\u6570\u4e4b\u548c&#xff1a;\u4ece\u66b4\u529b\u679a\u4e3e\u5230\u54c8\u5e0c\u4f18\u5316 &#xff08;\u53ea\u6709\u4e00\u4e2a\u6709\u6548\u7b54\u6848&#xff09; \u8fd9\u9053\u9898\u7684\u8981\u6c42\u5f88\u660e\u786e&amp;#xff1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/61945.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-18T13:18:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118131809-696cdd91217b2.png\" \/>\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\/61945.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/61945.html\",\"name\":\"\u529b\u6263hot100\u54c8\u5e0c\u8868\u4e13\u9898\u89e3\u6790\uff08C++\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-18T13:18:10+00:00\",\"dateModified\":\"2026-01-18T13:18:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/61945.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/61945.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61945.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u529b\u6263hot100\u54c8\u5e0c\u8868\u4e13\u9898\u89e3\u6790\uff08C++\uff09\"}]},{\"@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":"\u529b\u6263hot100\u54c8\u5e0c\u8868\u4e13\u9898\u89e3\u6790\uff08C++\uff09 - \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\/61945.html","og_locale":"zh_CN","og_type":"article","og_title":"\u529b\u6263hot100\u54c8\u5e0c\u8868\u4e13\u9898\u89e3\u6790\uff08C++\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6700\u8fd1\u5728\u5907\u6218\u84dd\u6865\u676f&#xff0c;\u5237\u529b\u6263\u7684 Hot 100 \u9898\u76ee&#xff0c;\u60f3\u548c\u5927\u5bb6\u5206\u4eab\u51e0\u9053\u5173\u4e8e\u54c8\u5e0c\u8868\u7684\u7ecf\u5178\u9898\u76ee\u3002\u8fd9\u51e0\u9053\u9898\u8986\u76d6\u4e86\u54c8\u5e0c\u8868\u7684\u51e0\u4e2a\u6838\u5fc3\u5e94\u7528\u573a\u666f&#xff0c;\u89e3\u9898\u8fc7\u7a0b\u4e2d\u4e5f\u8ba9\u6211\u5bf9\u54c8\u5e0c\u8868\u6709\u4e86\u66f4\u6df1\u7684\u7406\u89e3\u3002\u4e0b\u9762\u6211\u5c06\u5206\u4eab\u6bcf\u9053\u9898\u7684\u89e3\u9898\u5fc3\u8def\u5386\u7a0b\u548c\u4ee3\u7801\u5b9e\u73b0\u3002\u5982\u679c\u5bf9\u5176\u4e2d\u7684\u4e00\u4e9b\u57fa\u672c\u7528\u6cd5\u6709\u7591\u95ee\u7684\u670b\u53cb\u4e5f\u53ef\u4ee5\u53c2\u8003\u6211\u4e4b\u524d\u5199\u7684\u4e00\u4e2a\u7b80\u5355\u7528\u6cd5\u603b\u7ed3\u5907\u6218\u84dd\u6865\u676f-\u54c8\u5e0c\u3002 \u4e00\u3001\u4e24\u6570\u4e4b\u548c&#xff1a;\u4ece\u66b4\u529b\u679a\u4e3e\u5230\u54c8\u5e0c\u4f18\u5316 &#xff08;\u53ea\u6709\u4e00\u4e2a\u6709\u6548\u7b54\u6848&#xff09; \u8fd9\u9053\u9898\u7684\u8981\u6c42\u5f88\u660e\u786e&amp;#xff1","og_url":"https:\/\/www.wsisp.com\/helps\/61945.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-18T13:18:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118131809-696cdd91217b2.png"}],"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\/61945.html","url":"https:\/\/www.wsisp.com\/helps\/61945.html","name":"\u529b\u6263hot100\u54c8\u5e0c\u8868\u4e13\u9898\u89e3\u6790\uff08C++\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-18T13:18:10+00:00","dateModified":"2026-01-18T13:18:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/61945.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/61945.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/61945.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u529b\u6263hot100\u54c8\u5e0c\u8868\u4e13\u9898\u89e3\u6790\uff08C++\uff09"}]},{"@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\/61945","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=61945"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61945\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/61942"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=61945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=61945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=61945"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=61945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}