<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Burst Balloons on Dmytro&#39;s Blog</title>
    <link>https://dmytros.blog/tags/burst-balloons/</link>
    <description>Recent content in Burst Balloons on Dmytro&#39;s Blog</description>
    <image>
      <title>Dmytro&#39;s Blog</title>
      <url>https://dmytros.blog/images/papermod-cover.png</url>
      <link>https://dmytros.blog/images/papermod-cover.png</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 09 Apr 2026 08:10:49 +0300</lastBuildDate>
    <atom:link href="https://dmytros.blog/tags/burst-balloons/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>LeetCode - 150 - Burst Balloons</title>
      <link>https://dmytros.blog/posts/leetcode-150-burst-balloons/</link>
      <pubDate>Thu, 09 Apr 2026 08:10:49 +0300</pubDate>
      <guid>https://dmytros.blog/posts/leetcode-150-burst-balloons/</guid>
      <description>&lt;h3 id=&#34;the-problem&#34;&gt;The problem&lt;/h3&gt;
&lt;p&gt;You are given &lt;code&gt;n&lt;/code&gt; balloons, indexed from &lt;code&gt;0&lt;/code&gt; to &lt;code&gt;n - 1&lt;/code&gt;. Each balloon is painted with a number on it, represented by an array &lt;code&gt;nums&lt;/code&gt;. You are asked to burst all the balloons.&lt;/p&gt;
&lt;p&gt;If you burst the &lt;code&gt;i&lt;/code&gt;th balloon, you will get &lt;code&gt;nums[i - 1] * nums[i] * nums[i + 1]&lt;/code&gt; coins. If &lt;code&gt;i - 1&lt;/code&gt; or &lt;code&gt;i + 1&lt;/code&gt; goes out of bounds of the array, then treat it as if there is a balloon with a &lt;code&gt;1&lt;/code&gt; painted on it.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
