<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>ペアでない数字は2つ(x, y)あるという設定 例 Input: {12, 23, 34, 12, 12, 23, 12, 45} Output: 34 and 45 ソートすれば O(n log n) しかしO(n)の解法がある https://www.geeksforgeeks.org/find-the-two-numbers-with-odd-occurences-in-an-unsorted-array/ 解法 全てのXORを求める。x xor yだけ残る a = x ^ y とする LSB (Least Significant Bit) a &amp; -a を求める a = 01010 -…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2019%2F05%2F29%2F063405&quot; title=&quot;配列からペアでない2つの数字を見つける。XOR - perogram&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-29 06:34:05</published>
  <title>配列からペアでない2つの数字を見つける。XOR</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/2019/05/29/063405</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
