<?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>Multiply Strings on Dmytro&#39;s Blog</title>
    <link>https://dmytros.blog/tags/multiply-strings/</link>
    <description>Recent content in Multiply Strings 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>Wed, 17 Jun 2026 08:13:55 +0300</lastBuildDate>
    <atom:link href="https://dmytros.blog/tags/multiply-strings/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>LeetCode - 150 - Multiply Strings</title>
      <link>https://dmytros.blog/posts/leetcode-150-multiply-strings/</link>
      <pubDate>Wed, 17 Jun 2026 08:13:55 +0300</pubDate>
      <guid>https://dmytros.blog/posts/leetcode-150-multiply-strings/</guid>
      <description>&lt;h3 id=&#34;the-problem&#34;&gt;The problem&lt;/h3&gt;
&lt;p&gt;Given two non-negative integers &lt;code&gt;num1&lt;/code&gt; and &lt;code&gt;num2&lt;/code&gt; represented as strings, return the product of &lt;code&gt;num1&lt;/code&gt; and &lt;code&gt;num2&lt;/code&gt;, also represented as a string.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; You must not use any built-in BigInteger library or convert the inputs to integers directly.&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: num1 = &amp;#34;2&amp;#34;, num2 = &amp;#34;3&amp;#34;
Output: &amp;#34;6&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Example 2:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Input: num1 = &amp;#34;123&amp;#34;, num2 = &amp;#34;456&amp;#34;
Output: &amp;#34;56088&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Constraints:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;1 &amp;lt;= num1.length, num2.length &amp;lt;= 200&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;num1&lt;/code&gt; and &lt;code&gt;num2&lt;/code&gt; consist of digits only.&lt;/li&gt;
&lt;li&gt;Both &lt;code&gt;num1&lt;/code&gt; and &lt;code&gt;num2&lt;/code&gt; do not contain any leading zeros, except the number &lt;code&gt;0&lt;/code&gt; itself.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;multiplication-solution&#34;&gt;Multiplication Solution&lt;/h3&gt;
&lt;h4 id=&#34;explanation&#34;&gt;Explanation&lt;/h4&gt;
&lt;p&gt;We can multiply two numbers using the stacked method. We are going to start iterating from right to left in reverse order, multiplying each value in &lt;code&gt;num1&lt;/code&gt; with a value in &lt;code&gt;num2&lt;/code&gt;. If the result is greater than or equal to &lt;code&gt;10&lt;/code&gt;, we are going to carry an additional value. For example, with &lt;code&gt;num1 = 123&lt;/code&gt; and &lt;code&gt;num2 = 45&lt;/code&gt;:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
