<?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 二分木を与えられた時, それが正しい二分探索木(BST)か決めなさい BSTが以下のように定義されると仮定しなさい あるノードの左部分木はそのノードの値よりも小さい値のノードしか持っていない あるノードの右部分着はそのノードの値よりも大きい値のノードしか持っていない 左右の部分木も両方共BSTでなければならない 解法1(recursive) BSTの再帰的な定義に従って根から葉まで辿って行けば良いです 基底は葉であること ノードが左もしくは右に子ノードを持っていればそこを根とする木としてから探索します LeetCodeをやっ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpropyon.hateblo.jp%2Fentry%2F2020%2F01%2F16%2F000000&quot; title=&quot;# LeetCode Medium 98. Validate 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>https://i.imgur.com/BOl1ucs.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-16 00:00:00</published>
  <title># LeetCode Medium 98. Validate Binary Search Tree</title>
  <type>rich</type>
  <url>https://propyon.hateblo.jp/entry/2020/01/16/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
