<?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>Partition Labels on Dmytro&#39;s Blog</title>
    <link>https://dmytros.blog/tags/partition-labels/</link>
    <description>Recent content in Partition Labels 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>Mon, 18 May 2026 07:51:15 +0300</lastBuildDate>
    <atom:link href="https://dmytros.blog/tags/partition-labels/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>LeetCode - 150 - Partition Labels</title>
      <link>https://dmytros.blog/posts/leetcode-150-partition-labels/</link>
      <pubDate>Mon, 18 May 2026 07:51:15 +0300</pubDate>
      <guid>https://dmytros.blog/posts/leetcode-150-partition-labels/</guid>
      <description>&lt;p&gt;LeetCode - 150 - Partition Labels&lt;/p&gt;
&lt;h3 id=&#34;the-problem&#34;&gt;The problem&lt;/h3&gt;
&lt;p&gt;You are given a string &lt;code&gt;s&lt;/code&gt;. We want to partition the string into as many parts as possible so that each letter appears in at most one part. For example, the string &lt;code&gt;&amp;quot;ababcc&amp;quot;&lt;/code&gt; can be partitioned into &lt;code&gt;[&amp;quot;abab&amp;quot;, &amp;quot;cc&amp;quot;]&lt;/code&gt;, but partitions such as &lt;code&gt;[&amp;quot;aba&amp;quot;, &amp;quot;bcc&amp;quot;]&lt;/code&gt; or &lt;code&gt;[&amp;quot;ab&amp;quot;, &amp;quot;ab&amp;quot;, &amp;quot;cc&amp;quot;]&lt;/code&gt; are invalid.&lt;/p&gt;
&lt;p&gt;Note that the partition is done so that after concatenating all the parts in order, the resultant string should be &lt;code&gt;s&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
