{"height":"190","published":"2020-04-30 10:04:19","author_name":"sosodemonai","categories":["leetcode"],"version":"1.0","author_url":"https://blog.hatena.ne.jp/sosodemonai/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpropyon.hateblo.jp%2Fentry%2F2020%2F04%2F30%2F100419\" title=\"# LeetCode Easy 189. Rotate Array - Neunomizu\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_name":"Hatena Blog","title":"# LeetCode Easy 189. Rotate Array","url":"https://propyon.hateblo.jp/entry/2020/04/30/100419","type":"rich","width":"100%","provider_url":"https://hatena.blog","blog_title":"Neunomizu\u306e\u65e5\u8a18","description":"tags: leetcode \u554f\u984c Explore Problems \u30a2\u30a4\u30c7\u30a2 \uff621\u6b21\u5143\u914d\u5217\u304c\u4e0e\u3048\u3089\u308c\u305f\u6642\uff0ck\u3060\u3051\u53f3\u306b\u8981\u7d20\u3092\u305a\u3089\u305b\uff63\u3068\u3044\u3046\u554f\u984c\u3067\u3059\uff0e\u53f3\u7aef\u304b\u3089\u53f3\u306b\u305a\u3089\u3057\u305f\u5834\u5408\uff0c\u5de6\u7aef\u306b\u884c\u304d\u307e\u3059\uff0e \u89e3\u6cd5 k\u3092\uff0ck\u3092\u914d\u5217\u306e\u5927\u304d\u3055\u3067\u5272\u3063\u305f\u4f59\u308a\u3068\u3057\u307e\u3059\uff0e \u3053\u308c\u306f\u914d\u5217\u306e\u5927\u304d\u3055\u3068\u540c\u3058\u5206\u3060\u3051\u53f3\u306b\u305a\u3089\u3059\u3068\u5143\u306e\u4f4d\u7f6e\u306b\u8981\u7d20\u304c\u623b\u308b\u304b\u3089\u3067\u3059\uff0e \u3053\u3046\u3057\u3066\u3067\u304d\u305fk\u306b\u95a2\u3057\u3066 \u914d\u5217\u306e\u524d\u534ak\u306b\u914d\u5217\u306e\u5f8c\u534ak\u3092\u52a0\u3048\u305f\u3082\u306e\u3092\u914d\u5217\u306b\u4ee3\u5165\u3059\u308c\u3070\u6c42\u3081\u308b\u914d\u5217\u304c\u5f97\u3089\u308c\u307e\u3059\uff0e \u8a08\u7b97\u91cf \u8981\u7d20\u306e\u6570\u3092$N$\u3068\u3057\u307e\u3059\uff0e \u6642\u9593\u8a08\u7b97\u91cf $O(N)$ \u7a7a\u9593\u8a08\u7b97\u91cf $O(1)$ Python class Solution: def rotate(self, num\u2026","blog_url":"https://propyon.hateblo.jp/"}