<?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 実際のコーディングテストでPython3を使うことが多いことから，Python3で書くことに… 発言に一貫性がないという点で自分は一貫性がある？ アイデア BSTに新たな値を挿入しろという問題です． その値はBST内に存在しないという仮定があり，複数の解が想定できる場合はそのどれでも良いです． これは，BSTの定義通りにやるだけですね． 解法1(recursive) BSTの定義に合わせて valが現在のノードのvalよりも小さいとき 左部分木に挿入する可能性がある． 左木がなければ新しくノードを作る あれば，再帰的に探索す…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpropyon.hateblo.jp%2Fentry%2F2020%2F04%2F15%2F235626&quot; title=&quot;# LeetCode Medium 701. Insert into a Binary Search Tree - 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-15 23:56:26</published>
  <title># LeetCode Medium 701. Insert into a Binary Search Tree</title>
  <type>rich</type>
  <url>https://propyon.hateblo.jp/entry/2020/04/15/235626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
