{"id":10006077,"date":"2022-08-01T18:18:17","date_gmt":"2022-08-01T10:18:17","guid":{"rendered":"https:\/\/ityet.com\/?p=10006077"},"modified":"2022-08-01T18:18:17","modified_gmt":"2022-08-01T10:18:17","slug":"%e6%af%94%e5%86%92%e6%b3%a1%e7%ae%97%e6%b3%95%e8%bf%98%e7%ae%80%e5%8d%95%e7%9a%84%e6%8e%92%e5%ba%8f%e7%ae%97%e6%b3%95%ef%bc%9a%e7%9c%8b%e8%b5%b7%e6%9d%a5%e6%bb%a1%e6%98%afbug%e7%9a%84%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006077","title":{"rendered":"\u6bd4\u5192\u6ce1\u7b97\u6cd5\u8fd8\u7b80\u5355\u7684\u6392\u5e8f\u7b97\u6cd5\uff1a\u770b\u8d77\u6765\u6ee1\u662fbug\u7684\u7a0b\u5e8f\uff0c\u5c45\u7136\u662f\u5bf9\u7684"},"content":{"rendered":"<p>\u660e\u654f \u6653\u67e5 \u53d1\u81ea \u51f9\u975e\u5bfa \/<br \/>\u91cf\u5b50\u4f4d \u62a5\u9053 | \u516c\u4f17\u53f7 QbitAI<\/p>\n<p>\u7a0b\u5e8f bug \u4e5f\u80fd\u8d1f\u8d1f\u5f97\u6b63\u5417\uff1f<\/p>\n<p>\u8fd8\u771f\u53ef\u4ee5\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1sq0\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6bd4\u5982\u7a0b\u5e8f\u5458\u4eec\u518d\u719f\u6089\u4e0d\u8fc7\u7684\u6392\u5e8f\u7b97\u6cd5\uff0c\u901a\u8fc7\u4e24\u4e2a\u201cbug\u201d\u5c45\u7136\u80fd\u6b6a\u6253\u6b63\u7740\uff0c\u5b9e\u5728\u4ee4\u4eba\u532a\u5937\u6240\u601d\u3002<\/p>\n<p>\u8bf7\u770b\u8fd9\u4f4d\u7a0b\u5e8f\u5458\u5199\u7684\u6570\u7ec4\u5347\u5e8f\u6392\u5e8f\u4ee3\u7801\uff1a<\/p>\n<pre><code>for i = 1 to n do\n  for j = 1 to n do\n    if A[i] &lt; A[j] then\n      swap A[i] and A[j]<\/code><\/pre>\n<p>\u6700\u8fd1\u8fd9\u4e32\u4ee3\u7801\u5728 Hacker News \u8bba\u575b\u4e0a\u7a81\u7136\u706b\u4e86\u8d77\u6765\uff0c\u5f15\u6765\u5927\u6279\u7a0b\u5e8f\u5458\u56f4\u89c2\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1sq1\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4e4d\u4e00\u770b\u8fd9\u6bb5\u4ee3\u7801\uff0c\u4f60\u7684\u53cd\u5e94\u4f1a\u662f\u4ec0\u4e48\uff1f\u4f1a\u4e0d\u4f1a\u89c9\u5f97\u8fd9\u4e2a\u7a0b\u5e8f\u5458\u6c34\u5e73\u592a\u5dee\u4e86\uff0c\u8fde\u57fa\u672c\u7684<strong>\u5192\u6ce1\u7b97\u6cd5<\/strong>\u90fd\u5199\u4e0d\u597d\uff1a<\/p>\n<blockquote><p>\u4e0d\u7b49\u53f7\u65b9\u5411\u9519\u4e86\uff0c\u7b2c\u4e8c\u5c42\u5faa\u73af\u6307\u6570 j \u7684\u8303\u56f4\u4e5f\u5f04\u9519\u4e86\u3002<\/p><\/blockquote>\n<p>\u603b\u4e4b\uff0c\u8fd9\u6bb5\u4ee3\u7801\u201c\u7edd\u5bf9\u4e0d\u53ef\u80fd\u6b63\u786e\u201d\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVyrIF\" alt=\"\" title=\"\" loading=\"lazy\">\u5192\u6ce1\u7b97\u6cd5<\/p>\n<p>\u4f46\u5982\u679c\u4f60\u771f\u7684\u8fd0\u884c\u4e00\u4e0b\u4f1a\u53d1\u73b0\uff0c\u7ed3\u679c\u8fd8\u771f\u7684\u662f\u6309\u7167\u5347\u5e8f\u6392\u5217\u7684\u3002<\/p>\n<p>\u6211\u4eec\u518d\u6765\u770b\u4e00\u4e0b\u6b63\u786e\u7684\u5192\u6ce1\u7b97\u6cd5\u4ee3\u7801\u662f\u600e\u6837\u7684\uff1a<\/p>\n<pre><code>for i = 1 to n do\n  for j = i + 1 to n do\n    if A[i] &gt; A[j] then\n      swap A[i] and A[j]<\/code><\/pre>\n<p>\u540e\u8005\u4e0d\u540c\u4e4b\u5904\u662f <code>j = i + 1<\/code> \u4e14 <code>A[i] &gt; A[j]<\/code>\uff0c\u4e24\u6bb5\u7a0b\u5e8f\u5927\u76f8\u5f84\u5ead\u3002<\/p>\n<p>\u7136\u800c\u6211\u8981\u544a\u8bc9\u4f60\u4e00\u4e2a\u4e0d\u53ef\u601d\u8bae\u7684\u4e8b\u5b9e\uff0c\u5176\u5b9e\u7b2c\u4e00\u4e32\u4ee3\u7801\u662f\u5bf9\u7684\uff0c\u800c\u4e14\u53ef\u4ee5\u4e25\u683c\u8bc1\u660e\u3002<\/p>\n<p>\u90a3\u4e48\u5b83\u662f\u5982\u4f55\u5b9e\u73b0\u6b63\u786e\u6392\u5e8f\u7684\uff1f<\/p>\n<h2>\u4e3a\u4f55\u80fd\u6b6a\u6253\u6b63\u7740<\/h2>\n<p>\u4ed4\u7ec6\u4e00\u60f3\uff0c\u5176\u5b9e\u5f88\u5bb9\u6613\u7406\u89e3\u3002\u56e0\u4e3a\u8be5\u7b97\u6cd5\u6bd4\u5192\u6ce1\u6392\u5e8f\u591a\u4e00\u534a\u4ea4\u6362\u64cd\u4f5c\uff0c\u6b63\u597d\u53ef\u4ee5\u5c06\u964d\u5e8f\u7f16\u7a0b\u5347\u5e8f\u3002<\/p>\n<p>\u4e0d\u8fc7\uff0c\u4f5c\u8005\u8fd8\u662f\u7ed9\u51fa\u4e86\u4e25\u683c\u7684\u8bc1\u660e\u3002<\/p>\n<p>\u6211\u4eec\u5b9a\u4e49 P\u1d62 \u662f\u7ecf\u8fc7 i \u6b21\uff081 \u2264 i \u2264 n\uff09\u5916\u5faa\u73af\u540e\u5f97\u5230\u7684\u6570\u7ec4\u3002<\/p>\n<p>\u5982\u679c\u7b97\u6cd5\u6b63\u786e\uff0c\u90a3\u4e48\u524d i \u9879\u5df2\u7ecf\u662f\u5347\u5e8f\u6392\u5217\uff0c\u5373 A[1] \u2264 A[2] \u2264 . . . \u2264 A[i]\u3002<\/p>\n<p>\u8bc1\u660e\u8be5\u7b97\u6cd5\u6b63\u786e\uff0c\u5b9e\u9645\u4e0a\u5c31\u662f\u8bc1\u660e P\u2099 \u5bf9\u4e8e\u4efb\u4f55 n \u90fd\u6210\u7acb\u3002<\/p>\n<p>\u6839\u636e\u6570\u5b66\u5f52\u7eb3\u6cd5\uff0c\u6211\u4eec\u53ea\u8981\u8bc1\u660e P\u2081 \u6210\u7acb\uff0c\u5047\u8bbe P\u1d62 \u6210\u7acb\uff0c\u63a5\u7740\u518d\u8bc1\u660e Pi+1 \u4e5f\u6210\u7acb\uff0c\u547d\u9898\u5373\u53ef\u5f97\u8bc1\u3002<\/p>\n<p>P\u2081 \u663e\u7136\u662f\u6b63\u786e\u7684\uff0c\u800c\u4e14\u8fd9\u4e00\u6b65\u548c\u666e\u901a\u7684\u5192\u6ce1\u7b97\u6cd5\u964d\u5e8f\u6ca1\u6709\u533a\u522b\uff0c\u7ecf\u8fc7\u7b2c 1 \u6b21\u5916\u5faa\u73af\uff0cA[1] \u5c31\u662f\u6574\u4e2a\u6570\u7ec4\u7684\u6700\u5927\u5143\u7d20\u3002<\/p>\n<p>\u63a5\u7740\u6211\u4eec\u5047\u8bbe P\u1d62 \u6210\u7acb\uff0c\u7136\u540e\u8bc1\u660e Pi+1 \u6210\u7acb\u3002<\/p>\n<p>\u6211\u4eec\u5148\u5b9a\u4e49\u4e00\u4e2a\u5e8f\u6570 k\uff1a<\/p>\n<blockquote>\n<p>\u9996\u5148\u5047\u8bbe A<a href=\"https:\/\/segmentfault.com\/a\/k\" title=\"\u4ecb\u4e8e 1~i \u4e4b\u95f4\uff09\u6ee1\u8db3 A[k]&amp;gt;A[i+1] \u6700\u5c0f\u7684\u4e00\u4e2a\u6570\uff0c\u90a3\u4e48 A[k\u22121]\u2264A[i+1]\uff08k\u22601\">k<\/a>\u3002<\/p>\n<p>\u5982\u679c A[i+1]\u2265A[i]\uff0c\u90a3\u4e48\u8fd9\u6837\u7684 k \u4e0d\u5b58\u5728\uff0c\u6211\u4eec\u5c31\u4ee4 k=i+1\u3002<\/p>\n<\/blockquote>\n<p>\u8003\u8651\u4ee5\u4e0b\u4e09\u79cd\u60c5\u51b5\uff1a<\/p>\n<p><strong>1\u30011 \u2264 j \u2264 k\u22121<\/strong><\/p>\n<p>\u7531\u4e8e <code>A[i+1]\uff1eA[j]<\/code>\uff0c\u6ca1\u6709\u4efb\u4f55\u5143\u7d20\u4ea4\u6362\u53d1\u751f\u3002<\/p>\n<p><strong>2\u3001 k \u2264 j \u2264 i<\/strong> \uff08\u5982\u679c k=i+1\uff0c\u5219\u4e0d\u5b58\u5728\u6b64\u6b65\u9aa4\uff09<\/p>\n<p>\u7531\u4e8e <code>A[j]&gt;A[i+1]<\/code>\uff0c\u6240\u4ee5\u6bcf\u6b21\u6bd4\u8f83\u540e\u90fd\u4f1a\u6709\u5143\u7d20\u4ea4\u6362\u53d1\u751f\u3002<\/p>\n<p>\u6211\u4eec\u4f7f\u7528 A[ ] \u548c A\u2032[ ] \u6765\u8868\u793a\u4ea4\u6362\u524d\u548c\u4ea4\u6362\u540e\u7684\u5143\u7d20\uff0c\u6240\u4ee5<\/p>\n<pre><code>A\u2032[i+1] = A[k]\uff0cA\u2032[k]=A[i+1]<\/code><\/pre>\n<p>\u7ecf\u8fc7\u4e00\u7cfb\u5217\u4ea4\u6362\uff0c\u6700\u5927\u5143\u7d20\u6700\u7ec8\u88ab\u653e\u5230\u4e86 A[i+1] \u4f4d\u7f6e\u4e0a\uff0c\u539f\u6765\u7684 A[i+1] \u53d8\u6210\u4e86\u6700\u5927\u5143\u7d20\uff0cA[k] \u88ab\u63d2\u5165\u4e86\u5927\u5c0f\u4ecb\u4e8e\u539f\u6765 A[k] \u548c A[k-1] \u4e4b\u95f4\u7684\u5143\u7d20\u3002<\/p>\n<p><strong>3\u3001i+1 \u2264 j \u2264 n<\/strong><\/p>\n<p>\u7531\u4e8e\u6700\u5927\u5143\u7d20\u5df2\u7ecf\u4ea4\u6362\u5230\u524d i+1 \u4e2a\u5143\u7d20\u4e2d\uff0c\u6b64\u8fc7\u7a0b\u4e5f\u6ca1\u6709\u4efb\u4f55\u5143\u7d20\u4ea4\u6362\u3002<\/p>\n<p>\u6700\u540e\uff0cP\u2099 \u5c31\u662f\u5347\u5e8f\u6392\u5e8f\u7b97\u6cd5\u6267\u884c\u5b8c\u4ee5\u540e\u7684\u7ed3\u679c\u3002<\/p>\n<p>\u7531\u4e8e\u5185\u5916\u4e24\u7ec4\u5faa\u73af\u6ca1\u6709\u4efb\u4f55\u8303\u56f4\u5dee\u522b\uff0c\u56e0\u6b64\u8fd9\u53ef\u4ee5\u8bf4\u662f\u201c\u6700\u7b80\u5355\u201d\u7684\u6392\u5e8f\u7b97\u6cd5\u4e86\u3002<\/p>\n<p>\u4ece\u4ee3\u7801\u4e0a\u6765\u770b\uff0c\u5b83\u5f88\u50cf<strong>\u5192\u6ce1\u7b97\u6cd5<\/strong>\uff0c\u4f46\u4ece\u8bc1\u660e\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u8fd9\u5b9e\u9645\u4e0a\u662f\u4e00\u79cd<strong>\u63d2\u5165\u7b97\u6cd5<\/strong>\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVpLso\" alt=\"\" title=\"\" loading=\"lazy\">\u63d2\u5165\u7b97\u6cd5<\/p>\n<h2>\u7b97\u6cd5\u590d\u6742\u5ea6<\/h2>\n<p>\u663e\u7136\uff0c\u8be5\u7b97\u6cd5\u603b\u4f1a\u8fdb\u884c n\u00b2 \u6b21\u6bd4\u8f83\uff0c\u63a5\u4e0b\u6765\u8ba1\u7b97\u7b97\u6cd5\u7684\u4ea4\u6362\u6b21\u6570\u3002<\/p>\n<p>\u53ef\u4ee5\u8bc1\u660e\u4ea4\u6362\u5176\u6b21\u6700\u591a\u4e3a I+2(n-1)\uff0c\u6700\u5c11\u4e3a n-1\u3002<\/p>\n<p>\u5176\u4e2d I \u4e3a\u521d\u59cb\u6570\u5b57\u7684\u9006\u5e8f\u6570\uff0c\u6700\u5927\u4e3a n(n-1)\/2<\/p>\n<p>\u56e0\u6b64\u6574\u4e2a\u7b97\u6cd5\u7684\u590d\u6742\u5ea6\u4e3a O(n\u00b2)\u3002<\/p>\n<p>\u4ece\u8bc1\u660e\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u9664\u4e86 i=1 \u7684\u5faa\u73af\u4ee5\u5916\uff0c\u5176\u4f59\u5faa\u73af\u91cc j=i-1 \u4e4b\u540e\u7684\u90e8\u5206\u5b8c\u5168\u65e0\u6548\uff0c\u56e0\u6b64\u53ef\u4ee5\u5c06\u8fd9\u90e8\u5206\u7701\u7565\uff0c\u5f97\u5230\u7b80\u5316\u540e\u7684\u7b97\u6cd5\u3002<\/p>\n<pre><code>for i = 2 to n do\n  for j = 1 to i \u2212 1 do\n    if A[i] &lt; A[j] then\n      swap A[i] and A[j]<\/code><\/pre>\n<p>\u8be5\u7b97\u6cd5\u51cf\u5c11\u4e86\u6bd4\u8f83\u548c\u4ea4\u6362\u6b21\u6570\uff0c\u4e0d\u8fc7\u7b97\u6cd5\u590d\u6742\u5ea6\u4f9d\u7136\u662f O(n\u00b2)\u3002<\/p>\n<h2>\u7f51\u53cb\uff1a\u8fd9\u4e2a\u7b97\u6cd5\u6211\u4ee5\u524d\u89c1\u8fc7<\/h2>\n<p>\u6bd4\u6700\u5bb9\u6613\u7406\u89e3\u7684\u5192\u6ce1\u7b97\u6cd5\u8fd8\u8981\u7b80\u5355\uff0c\u8fd9\u4e2a\u6392\u5e8f\u7b97\u6cd5\u5728 Hacker News \u4e0a\u5f88\u5feb\u5f15\u8d77\u4e86\u7f51\u53cb\u7684\u56f4\u89c2\u3002<\/p>\n<p>\u4e0d\u5c11\u4eba\u89c9\u5f97\u5b83\u201c\u5f88\u773c\u719f\u201d\u3002<\/p>\n<p>\u6709\u4f4d\u7f51\u53cb\u8868\u793a\uff0c\u81ea\u5df1\u66fe\u5728\u5965\u6797\u5339\u514b\u6570\u5b66\u7ade\u8d5b\u4e2d\u770b\u5230\u4e00\u4e2a\u540c\u5b66\u7528\u4e86\u4e00\u79cd\u975e\u5e38\u5947\u602a\u7684\u6392\u5e8f\u7b97\u6cd5\uff0c\u5b83\u53ef\u4ee5\u8fd0\u884c\u4f46\u662f\u6548\u7387\u5f88\u4f4e\uff0c\u66f4\u50cf\u662f\u4e00\u79cd\u63d2\u5165\u6392\u5e8f\u3002<\/p>\n<blockquote><p>\u5982\u679c\u6211\u6ca1\u8bb0\u9519\u7684\u8bdd\uff0c\u4ed6\u7528\u7684\u5c31\u662f\u8fd9\u79cd\u7b97\u6cd5\u3002<\/p><\/blockquote>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1sq8\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4e8b\u5b9e\u4e0a\uff0c\u5173\u4e8e\u8fd9\u79cd\u7b97\u6cd5\u7684\u8ba8\u8bba\u5df2\u4e45\uff0c\u4ece 2014 \u5e74\u5f00\u59cb\u5c31\u4e0d\u65ad\u6709\u4eba\u53d1\u5e16\uff0c\u8fd9\u6b21\u4f5c\u8005\u5c06\u8bba\u6587\u4e0a\u4f20\u5230 arXiv \u540e\u53c8\u5f15\u8d77\u4e86\u5e7f\u6cdb\u70ed\u8bae\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1sq9\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u751a\u81f3\u8fd8\u6709\u4e4c\u9f99\u4e8b\u4ef6\u53d1\u751f\u3002<\/p>\n<p>\u6709\u4f4d\u7f51\u53cb\u626b\u4e86\u4e00\u773c\u8bba\u6587\u5c31\u4ee5\u4e3a\u8fd9\u4e2a\u7b97\u6cd5\u548c\u81ea\u5df1 10 \u5e74\u524d\u63d0\u51fa\u7684\u4e00\u6837\u3002<\/p>\n<p>\u7559\u8a00\u7f51\u53cb\u7684\u7b97\u6cd5\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1sra\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4e4d\u4e00\u770b\u4e24\u79cd\u7b97\u6cd5\u7684\u4ee3\u7801\u786e\u5b9e\u5f88\u50cf\uff0c\u539f\u7406\u4e0a\u7684\u786e\u6709\u4e9b\u76f8\u4f3c\u3002<\/p>\n<p>\u90fd\u662f\u770b\u8d77\u6765\u50cf\u5192\u6ce1\u6392\u5e8f\uff0c\u4f46\u5176\u5b9e\u66f4\u8d34\u8fd1\u9009\u62e9\u6392\u5e8f\u3002<\/p>\n<p>\u4e0d\u8fc7\u5f88\u5feb\u6709\u4eba\u6307\u51fa\u771f\u76f8\uff1a\u8fd9\u79cd\u7b97\u6cd5\u4e2d <code>j=i+1 to n<\/code>\uff0c\u5e76\u4e14\u662f\u5f53 <code>A[i] &gt; A[j]<\/code> \u65f6\u4ea4\u6362\u3002<\/p>\n<p>\u800c\u4f5c\u8005\u63d0\u51fa\u7684\u7b97\u6cd5\u4e2d <code>j=1 to n\uff0cA[i] &lt; A[j]<\/code> \u65f6\u4ea4\u6362\u3002<\/p>\n<p>\u4e24\u79cd\u7b97\u6cd5\u76f8\u6bd4\uff0c\u7f51\u53cb\u6b64\u524d\u63d0\u51fa\u7684\u66f4\u5bb9\u6613\u88ab\u7406\u89e3\u4e3a\u4ec0\u4e48\u53ef\u4ee5\u8fd0\u884c\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1srb\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5f53\u7136\u4e5f\u6709\u6b6a\u697c\u7684\uff0c\u6709\u4eba\u5c31\u8c03\u4f83\u81ea\u5df1\u521a\u5b66\u7f16\u7a0b\u65f6\u5199\u8fc7\u8fd9\u4e2a\u7b97\u6cd5\u3002<\/p>\n<blockquote><p>\u6211\u767e\u5206\u767e\u786e\u5b9a\uff0c\u5728\u6211\u521a\u5f00\u59cb\u5b66\u7f16\u7a0b\u3001\u5e76\u60f3\u8981\u627e\u5230\u6700\u77ed\u7684\u6392\u5e8f\u65b9\u6cd5\u65f6\u5c31\u5199\u8fc7\u5b83\u3002<\/p><\/blockquote>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1src\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1srd\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4e0d\u8fc7\u8bf4\u5230\u5b9e\u9645\u5e94\u7528\u4e0a\uff0c\u8fd9\u79cd\u7b97\u6cd5\u9700\u8981\u7684\u8ba1\u7b97\u65f6\u95f4\u592a\u957f\u4e86\u3002<\/p>\n<p>\u6709\u4eba\u5c31\u8ba4\u4e3a\uff0c\u8fd9\u79cd\u7b97\u6cd5\u6b64\u524d\u88ab\u53d1\u73b0\u8fc7\u5f88\u591a\u6b21\uff0c\u4f46\u662f\u90a3\u4e9b\u4eba\u6839\u672c\u6ca1\u6253\u7b97\u7528\u5b83\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1sre\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4e5f\u6709\u4eba\u63d0\u51fa\uff1a\u8fd9\u79cd\u6392\u5e8f\u6ca1\u6709<strong>\u7761\u7720\u6392\u5e8f<\/strong>\u7b80\u5355\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1srf\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u7761\u7720\u6392\u5e8f\u5c31\u662f\u6784\u9020 n \u4e2a\u7ebf\u7a0b\uff0c\u8ba9\u7ebf\u7a0b\u548c\u6392\u5e8f\u7684 n \u4e2a\u6570\u5bf9\u5e94\u3002<\/p>\n<p>\u4f8b\u5982\u5bf9\u4e8e [4,2,3,5,9] \u8fd9\u6837\u4e00\u7ec4\u6570\u5b57\uff0c\u5c31\u521b\u5efa 5 \u4e2a\u7ebf\u7a0b\uff0c\u6bcf\u4e2a\u7ebf\u7a0b\u7761\u7720 4s\uff0c2s\uff0c3s\uff0c5s\uff0c9s\u3002\u8fd9\u4e9b\u7ebf\u7a0b\u7761\u9192\u4e4b\u540e\uff0c\u5c31\u628a\u81ea\u5df1\u5bf9\u5e94\u7684\u6570\u62a5\u51fa\u6765\u5373\u53ef\u3002\u8fd9\u6837\u7b49\u6240\u6709\u7ebf\u7a0b\u90fd\u9192\u6765\uff0c\u6392\u5e8f\u5c31\u7ed3\u675f\u4e86\u3002<\/p>\n<p>\u4f46\u548c\u4f5c\u8005\u63d0\u51fa\u7684\u7b97\u6cd5\u4e00\u6837\uff0c\u7761\u7720\u6392\u5e8f\u7531\u4e8e\u591a\u7ebf\u7a0b\u7684\u95ee\u9898\uff0c\u5728\u771f\u6b63\u5b9e\u73b0\u4e0a\u4e5f\u6709<strong>\u56f0\u96be<\/strong>\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u8fd9\u4f4d\u7f51\u53cb\u4e5f\u8868\u793a\u81ea\u5df1\u770b\u5230\u8fc7\u8fd9\u79cd\u7b97\u6cd5\uff1a<\/p>\n<blockquote><p>\u6211\u786e\u5b9a\u6211\u6b64\u524d\u770b\u5230\u8fc7\u8fd9\u79cd\u7b97\u6cd5\uff0c\u5b83\u6ca1\u6709\u540d\u5b57\u5417\uff1f<\/p><\/blockquote>\n<p>\u5f88\u5feb\u5c31\u6709\u4eba\u63d0\u8bae\u8bf4\u2014\u2014<\/p>\n<blockquote><p>\u5982\u679c\u5b83\u6ca1\u6709\u540d\u5b57\u7684\u8bdd\uff0c\u6211\u5efa\u8bae\u79f0\u4e4b\u4e3a\u201c<strong>\u9762\u8bd5\u6392\u5e8f<\/strong>\u201d\u3002<\/p><\/blockquote>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc1srg\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><strong>\u8fd1\u671f\u70ed\u6587\u63a8\u8350\uff1a<\/strong><\/p>\n<p>1.<a href=\"https:\/\/link.segmentfault.com\/?enc=rTr9ELSFzf7yjmRqBS4J9w%3D%3D.sBbjGZE2gaKw1%2FmJ1hO7pGB2ptLXTuLahSAVmCAZnP4%3D\" rel=\"nofollow\">1,000+ \u9053 Java\u9762\u8bd5\u9898\u53ca\u7b54\u6848\u6574\u7406(2022\u6700\u65b0\u7248)<\/a><\/p>\n<p>2.<a href=\"https:\/\/link.segmentfault.com\/?enc=YFf%2F4a51hyJXgjv4Lobk1g%3D%3D.jQ%2FW02Dfx3RH1C9Kyo8UoxhlOklgcKm0ylhmCc2QqDt7N0zFniKEEIuEpcLEJ2t1KJIeUFgI1%2FvFlyDkqeahYNW8EXPmDJx9Uau2GeQyjFI%3D\" rel=\"nofollow\">\u52b2\u7206\uff01Java \u534f\u7a0b\u8981\u6765\u4e86\u3002\u3002\u3002<\/a><\/p>\n<p>3.<a href=\"https:\/\/link.segmentfault.com\/?enc=1%2BCRwBrW5m0vW02VJL%2Bq0Q%3D%3D.7LdhpmOxkAjxrP1EIlgizBWydYvwKPBibPC9fK%2BxDnrtNKqItsr365FNuJEWGlY%2B\" rel=\"nofollow\">Spring Boot 2.x \u6559\u7a0b\uff0c\u592a\u5168\u4e86\uff01<\/a><\/p>\n<p>4.<a href=\"https:\/\/link.segmentfault.com\/?enc=wIgM9LrDlgLTo8Oo1odTIA%3D%3D.C1SY5pgpbuCbxsk5zC%2BxcjGQ3Z8ubHykiRD0fO4SHXaeDg4vbjIg957miAmKQvttzep%2BNLDfrpjDfU8x9XVMXh2G7LkN8SIu4QMPe3%2BlflM%3D\" rel=\"nofollow\">\u522b\u518d\u5199\u6ee1\u5c4f\u7684\u7206\u7206\u7206\u70b8\u7c7b\u4e86\uff0c\u8bd5\u8bd5\u88c5\u9970\u5668\u6a21\u5f0f\uff0c\u8fd9\u624d\u662f\u4f18\u96c5\u7684\u65b9\u5f0f\uff01\uff01<\/a><\/p>\n<p>5.<a href=\"https:\/\/link.segmentfault.com\/?enc=ocwM4qo0K%2Fo4iVVsGJreTg%3D%3D.8nbRkOyeID8fNT9j%2F%2Fjf6cx1Kju3J5RR627g4Z8RsNyD8vUM2lUxfec5zSRaofmsB7hEIIOcknAOMMli4FhKBNBoE1FGlVpx4t5W6rUNY4GFjTUWSmtrnt1RFMWU4p%2BQ\" rel=\"nofollow\">\u300aJava\u5f00\u53d1\u624b\u518c\uff08\u5d69\u5c71\u7248\uff09\u300b\u6700\u65b0\u53d1\u5e03\uff0c\u901f\u901f\u4e0b\u8f7d\uff01<\/a><\/p>\n<p>\u89c9\u5f97\u4e0d\u9519\uff0c\u522b\u5fd8\u4e86\u968f\u624b\u70b9\u8d5e+\u8f6c\u53d1\u54e6\uff01<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042254309\">https:\/\/segmentfault.com\/a\/1190000042254309<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u660e\u654f \u6653\u67e5 \u53d1\u81ea \u51f9\u975e\u5bfa \/\u91cf\u5b50\u4f4d \u62a5\u9053 | \u516c\u4f17\u53f7 QbitAI \u7a0b\u5e8f bug \u4e5f\u80fd\u8d1f\u8d1f\u5f97\u6b63\u5417\uff1f \u8fd8\u771f\u53ef\u4ee5\u3002 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006077","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006077"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006077\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}