{"author_name":"sosodemonai","title":"# LeetCode Medium 287. Find the Duplicate Number","width":"100%","published":"2020-02-13 17:56:28","version":"1.0","blog_url":"https://propyon.hateblo.jp/","type":"rich","author_url":"https://blog.hatena.ne.jp/sosodemonai/","provider_name":"Hatena Blog","blog_title":"Neunomizu\u306e\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpropyon.hateblo.jp%2Fentry%2F2020%2F02%2F13%2F175628\" title=\"# LeetCode Medium 287. Find the Duplicate Number - 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>","provider_url":"https://hatena.blog","description":"tags: leetcode \u554f\u984c Explore Problems \u30a2\u30a4\u30c7\u30a2 \u8981\u7d20\u6570\u304cn + 1\u306e\u6574\u6570\u306e\u914d\u5217\u304c\u4e0e\u3048\u3089\u308c\u305f\u6642\uff0c\u8981\u7d20\u306f[1, n]\u3067\u3042\u308a\uff0c\u9ce9\u306e\u5de3\u539f\u7406\u3088\u308a\u5c11\u306a\u304f\u3068\u30821\u3064\u306e\u8981\u7d20\u306f\u91cd\u8907\u3057\u3066\u3044\u307e\u3059\uff0e \u3053\u306e\u3046\u3061\uff0c\u91cd\u8907\u3057\u3066\u3044\u308b\u8981\u7d20\u3092\u63a2\u305b\u3068\u3044\u3046\u3082\u306e\uff0e \u6ce8\u610f\u70b9\u306f \u914d\u5217\u3092\u64cd\u4f5c\u3057\u3066\u306f\u3044\u3051\u306a\u3044\uff0e \u3064\u307e\u308astd::sort\u306f\u4f7f\u3048\u306a\u3044\uff0e \u7a7a\u9593\u8a08\u7b97\u91cf\u306f$O(1)$\u3057\u304b\u8a31\u3055\u308c\u3066\u3044\u306a\u3044\uff0e \u3064\u307e\u308a\u65b0\u305f\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u304c\u4f7f\u3048\u306a\u3044\uff0e \u6642\u9593\u8a08\u7b97\u91cf\u306f$O(n^{2})$\u3088\u308a\u3082\u5c0f\u3055\u3044\u5fc5\u8981\u304c\u3042\u308b\uff0e \u3064\u307e\u308a2\u91cd\u30eb\u30fc\u30d7\u3082\u4f7f\u3048\u306a\u3044\uff0e 1\u3064\u3057\u304b\u91cd\u8907\u3057\u305f\u6570\u306f\u306a\u3044\u304c\uff0c\u305d\u308c\u306f1\u3064\u4ee5\u4e0a\u91cd\u8907\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\uff0e \u89e3\u6cd5 \u3053\u306e\u554f\u984c\u3067\u306fcycle d\u2026","url":"https://propyon.hateblo.jp/entry/2020/02/13/175628","categories":["leetcode"],"image_url":"https://i.imgur.com/rIQmDYC.png","height":"190"}