<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>henoc</author_name>
  <author_url>https://blog.hatena.ne.jp/henoc/</author_url>
  <blog_title>henoc’s blog</blog_title>
  <blog_url>https://henoc.hatenadiary.jp/</blog_url>
  <categories>
    <anon>leetcode</anon>
  </categories>
  <description>Pythonで書いてあった解法を見て書きました arr1のある位置までで構成できる単調増加列について、最後尾の値をkey, その場合の置換処理の最小回数をvalueとしたdpを考える。それをHashMapでdpとする。 初期値として dp[-1] = 0 を入れておく。 あるarr1上の位置iに対して arr1[i]があるkeyより真に大きい場合、遷移は２通り： arr2を使用せずそのまま単調増加列に追加する arr2からkeyを超える最小の要素を使い、単調増加列に追加する そうでない場合、遷移は１通り： arr2からkeyを超える最小の要素を使い、単調増加列に追加する use std::cm…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhenoc.hatenadiary.jp%2Fentry%2F2019%2F09%2F08%2F171141&quot; title=&quot;Weekly Contest 153 : 1187. Make Array Strictly Increasing - henoc’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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-08 17:11:41</published>
  <title>Weekly Contest 153 : 1187. Make Array Strictly Increasing</title>
  <type>rich</type>
  <url>https://henoc.hatenadiary.jp/entry/2019/09/08/171141</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
