<?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>Hand of Straights on Dmytro&#39;s Blog</title>
    <link>https://dmytros.blog/tags/hand-of-straights/</link>
    <description>Recent content in Hand of Straights 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>Sat, 09 May 2026 09:16:39 +0300</lastBuildDate>
    <atom:link href="https://dmytros.blog/tags/hand-of-straights/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>LeetCode - 150 - Hand of Straights</title>
      <link>https://dmytros.blog/posts/leetcode-150-hand-of-straights/</link>
      <pubDate>Sat, 09 May 2026 09:16:39 +0300</pubDate>
      <guid>https://dmytros.blog/posts/leetcode-150-hand-of-straights/</guid>
      <description>&lt;h3 id=&#34;the-problem&#34;&gt;The problem&lt;/h3&gt;
&lt;p&gt;Alice has some number of cards, and she wants to rearrange the cards into groups so that each group is of size &lt;code&gt;groupSize&lt;/code&gt; and consists of &lt;code&gt;groupSize&lt;/code&gt; consecutive cards.&lt;/p&gt;
&lt;p&gt;Given an integer array &lt;code&gt;hand&lt;/code&gt;, where &lt;code&gt;hand[i]&lt;/code&gt; is the value written on the &lt;code&gt;ith&lt;/code&gt; card, and an integer &lt;code&gt;groupSize&lt;/code&gt;, return &lt;code&gt;true&lt;/code&gt; if she can rearrange the cards, or &lt;code&gt;false&lt;/code&gt; otherwise.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example 1:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Input: hand = [1,2,3,6,2,3,4,7,8], groupSize = 3
Output: true
Explanation: Alice&amp;#39;s hand can be rearranged as [1,2,3], [2,3,4], [6,7,8]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Example 2:&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
