{"id":151186,"date":"2020-09-01T03:14:39","date_gmt":"2020-08-31T19:14:39","guid":{"rendered":"http:\/\/4563.org\/?p=151186"},"modified":"2020-09-01T03:14:39","modified_gmt":"2020-08-31T19:14:39","slug":"python-deque-%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=151186","title":{"rendered":"Python deque \u662f\u4ec0\u4e48"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Python deque \u662f\u4ec0\u4e48               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AIPINCAIHUIYING <\/span>  <span><i><\/i> 17<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86 deque\uff0c\u4e0d\u77e5\u9053\u5b83\u662f\u7528\u6765\u5e72\u561b\u7684<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3052921\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whenov <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             deque \u5728\u4e24\u7aef\u64cd\u4f5c\u65f6\u95f4\u590d\u6742\u5ea6\u4e3a O(1)\uff0c\u800c list \u5728\u9996\u7aef\u64cd\u4f5c\u590d\u6742\u5ea6\u4e3a O(n)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3052922\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Procumbens <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             double-ended queue                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3052923\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BBrother <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53cc\u5411\u961f\u5217\uff0c\u53ef\u7528\u6765\u5b9e\u73b0\u5355\u8c03\u961f\u5217\uff0c\u8ba1\u7b97\u6ed1\u52a8\u7a97\u53e3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3052924\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jmc891205 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Stack, Queue, Deque                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3052925\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : black11black <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             py \u4e2d\u5f88\u6709\u7528\u7684\u5c0f\u73a9\u610f\u4e4b\u4e00\uff0c\u7528\u6765\u5b9e\u73b0\u6bd4\u5982\u4efb\u52a1\u961f\u5217\u8fd9\u79cd\u573a\u666f\uff0c\u6bd4\u5982\u5047\u5982\u4f60\u81ea\u5df1\u505a\u4e00\u4e2a py \u5185\u90e8\u7684\u7ebf\u7a0b\u7ba1\u7406\u5185\u6838\u7684\u65f6\u5019\u4f1a\u7528\u5230                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3052926\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : volvo007 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             py \u8981\u60f3\u7528\u6765\u505a\u66f4\u591a\u4e8b\u60c5\uff0c\u4e66\u5199\u66f4\u6d41\u7545\u7684 py\uff0c\u57fa\u672c\u5e93\u4e00\u5b9a\u8981\u719f\u6089<br \/>\u6709\u8fd9\u4e48\u51e0\u4e2a\u57fa\u672c\u5e93\uff0c\u91cc\u9762\u63d0\u4f9b\u4e86\u5f88\u591a\u7c7b\u4f3c\u7684\u5c0f\u73a9\u610f<\/p>\n<p>functools\uff0citertools\uff0ccollections\uff0cdeque\uff0cheapq                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Python deque \u662f\u4ec0\u4e48 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/151186"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=151186"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/151186\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=151186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=151186"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=151186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}