<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cindychen0204</author_name>
  <author_url>https://blog.hatena.ne.jp/cindychen0204/</author_url>
  <blog_title>Cindy's Blog</blog_title>
  <blog_url>https://cindychen0204.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Very interesting question 0 ~ n - 2 また 1 ~ n -1 に２つに分けることを思いつかなかったな。 class Solution { public int rob(int[] nums) { int n = nums.length; if (n &lt;= 3){ int max = 0; for (int i = 0; i &lt; n; i++){ max = Math.max(nums[i], max); } return max; } return Math.max(findMaxSum(nums, 0, n - 1), findMaxSum(nums, 1,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcindychen0204.hatenablog.com%2Fentry%2F2022%2F10%2F07%2FLeetCode_213._House_Robber_II&quot; title=&quot;LeetCode 213. House Robber II - Cindy&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>2022-10-07 18:45:35</published>
  <title>LeetCode 213. House Robber II</title>
  <type>rich</type>
  <url>https://cindychen0204.hatenablog.com/entry/2022/10/07/LeetCode_213._House_Robber_II</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
