<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>becnical</author_name>
  <author_url>https://blog.hatena.ne.jp/becnical/</author_url>
  <blog_title>h3mky0's blog</blog_title>
  <blog_url>https://h3mky0.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>動的計画法問題：https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule/概要：配列aが与えられる. これをd分割したときの区間ごとの最大値の和の最小値を求める考えたこと：区間分割なので「どこで区切ったか」、「どこまで区切ったのか」という情報を扱いたくなる。今回の場合、これは次のように添え字を持つことで動的計画法で実現できる。dp[i][j] = i番目まで見て、j個の集合が存在する 次に遷移について考える。i-1番目までを見たとき, 次の分割の番地はi int minDifficulty(vector&lt;int&gt;&amp; j…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh3mky0.hatenadiary.jp%2Fentry%2F2020%2F02%2F17%2F223030&quot; title=&quot;LeetCode 1335. Minimum Difficulty of a Job Schedule - h3mky0&amp;#39;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>2020-02-17 22:30:30</published>
  <title>LeetCode 1335. Minimum Difficulty of a Job Schedule</title>
  <type>rich</type>
  <url>https://h3mky0.hatenadiary.jp/entry/2020/02/17/223030</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
