<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sosodemonai</author_name>
  <author_url>https://blog.hatena.ne.jp/sosodemonai/</author_url>
  <blog_title>Neunomizuの日記</blog_title>
  <blog_url>https://propyon.hateblo.jp/</blog_url>
  <categories>
    <anon>leetcode</anon>
  </categories>
  <description>tags: leetcode 問題 Explore Problems アイデア 要素数がn + 1の整数の配列が与えられた時，要素は[1, n]であり，鳩の巣原理より少なくとも1つの要素は重複しています． このうち，重複している要素を探せというもの． 注意点は 配列を操作してはいけない． つまりstd::sortは使えない． 空間計算量は$O(1)$しか許されていない． つまり新たなデータ構造が使えない． 時間計算量は$O(n^{2})$よりも小さい必要がある． つまり2重ループも使えない． 1つしか重複した数はないが，それは1つ以上重複している可能性がある． 解法 この問題ではcycle d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpropyon.hateblo.jp%2Fentry%2F2020%2F02%2F13%2F175628&quot; title=&quot;# LeetCode Medium 287. Find the Duplicate Number - Neunomizuの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://i.imgur.com/rIQmDYC.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-13 17:56:28</published>
  <title># LeetCode Medium 287. Find the Duplicate Number</title>
  <type>rich</type>
  <url>https://propyon.hateblo.jp/entry/2020/02/13/175628</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
