<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pco2699</author_name>
  <author_url>https://blog.hatena.ne.jp/pco2699/</author_url>
  <blog_title>pco2699’s blog</blog_title>
  <blog_url>https://blog.pco2699.net/</blog_url>
  <categories>
    <anon>LeetCode</anon>
  </categories>
  <description>問題 May Leetcoding Challange Complementの21日目です。 5月も下旬。早い。 leetcode.com BSTのトラバースする問題です。 解き方 解き方は極めてシンプルで、BSTをDFS - Inorderでなめていき、Arrayに詰めてアクセスすればOK。 木のInorder、Preorder、Postorderについてはこの記事がわかりやすい。 www.geeksforgeeks.org 回答 class Solution: def kthSmallest(self, root: TreeNode, k: int) -&gt; int: res = [] de…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.pco2699.net%2Fentry%2F2020%2F05%2F20%2F230239&quot; title=&quot; LeetCode: Kth Smallest Element in a BSTを解く - pco2699’s blog&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://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-20 23:02:39</published>
  <title> LeetCode: Kth Smallest Element in a BSTを解く</title>
  <type>rich</type>
  <url>https://blog.pco2699.net/entry/2020/05/20/230239</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
