{"id":1152,"date":"2023-05-01T10:18:03","date_gmt":"2023-05-01T02:18:03","guid":{"rendered":"https:\/\/white-night.club\/?p=1152"},"modified":"2023-11-09T11:07:55","modified_gmt":"2023-11-09T03:07:55","slug":"ad8","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/05\/01\/ad8\/","title":{"rendered":"\u5251\u6307 Offer 06.\u00a0\u4ece\u5c3e\u5230\u5934\u6253\u5370\u94fe\u8868"},"content":{"rendered":"\n<p>\u8f93\u5165\u4e00\u4e2a\u94fe\u8868\u7684\u5934\u8282\u70b9\uff0c\u4ece\u5c3e\u5230\u5934\u53cd\u8fc7\u6765\u8fd4\u56de\u6bcf\u4e2a\u8282\u70b9\u7684\u503c\uff08\u7528\u6570\u7ec4\u8fd4\u56de\uff09\u3002<\/p>\n\n\n\n<p><strong>\u793a\u4f8b 1\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u8f93\u5165\uff1a<\/strong>head = [1,3,2]\n<strong>\u8f93\u51fa\uff1a<\/strong>[2,3,1]<\/pre>\n\n\n\n<p><strong>\u9650\u5236\uff1a<\/strong><\/p>\n\n\n\n<p><code>0 &lt;= \u94fe\u8868\u957f\u5ea6 &lt;= 10000<\/code><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>\u521d\u59cb\u4ee3\u7801<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff2f\" class=\"has-inline-color\">\/**\n * Definition for singly-linked list.\n * struct ListNode {\n *     int val;\n *     ListNode *next;\n *     ListNode(int x) : val(x), next(NULL) {}\n * };\n *\/<\/mark>\nclass Solution {\npublic:\n    vector&lt;int> reversePrint(ListNode* head) {\n\n    }\n};<\/code><\/pre>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u89e3\u9898\u601d\u8def<\/p>\n<cite><em>\u53c8\u662f\u94fe\u8868\u7684\u9012\u5f52<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u8fd9\u9898\u62ff\u6765\u5165\u95e8\u94fe\u8868\u7684\u9012\u5f52\u9898\u8fd8\u662f\u4e0d\u9519\u7684\u3002\u9012\u5f52\u7684\u201c\u9012\u201d\u64cd\u4f5c\u7ed3\u675f\u540e\u6808\u9876\u5143\u7d20\u4e3a\u94fe\u8868\u5c3e\u8282\u70b9\u7684\u76f8\u5173\u64cd\u4f5c\u3002\u90a3\u4e48\u76f4\u63a5\u9012\u5f52\u5230\u5c3e\u8282\u70b9\u4fdd\u5b58\u5176\u503c\u5373\u53ef\u3002\u90a3\u4e48\u9012\u5f52\u4e2d\u201d\u9012\u201c\u7684\u64cd\u4f5c\u5e94\u8be5\u4e00\u76f4\u5230\u5c3e\u8282\u70b9\u7684\u4e0b\u4e00\u4e2a\u8282\u70b9\uff0c\u5373head=NULL\u65f6\u7ed3\u675f\u3002\u4e0d\u7136\u4f1a\u8df3\u8fc7\u5c3e\u8282\u70b9\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>\u5b8c\u6574\u4ee3\u7801<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff2f\" class=\"has-inline-color\">\/**\n * Definition for singly-linked list.\n * struct ListNode {\n *     int val;\n *     ListNode *next;\n *     ListNode(int x) : val(x), next(NULL) {}\n * };\n *\/<\/mark>\nclass Solution {\npublic:\n    vector&lt;int> reversePrint(ListNode* head) {\n        vector&lt;int>nums;\n        if(head==NULL)\n            return nums;\n        nums=reversePrint(head->next);\n        nums.push_back(head->val);\n        return nums;\n    }\n};<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>LeetCode\u9898\u76ee\uff1a\u9012\u5f52<\/p>\n","protected":false},"author":1,"featured_media":2827,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[42,25],"tags":[38],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1152"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=1152"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1152\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/2827"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=1152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=1152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=1152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}