<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>模拟 on 世界</title>
    <link>https://muzimi.org/docs/leetcode/%E6%95%B0%E7%BB%84/%E6%A8%A1%E6%8B%9F/</link>
    <description>Recent content in 模拟 on 世界</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <atom:link href="https://muzimi.org/docs/leetcode/%E6%95%B0%E7%BB%84/%E6%A8%A1%E6%8B%9F/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>68 文本左右对齐</title>
      <link>https://muzimi.org/docs/leetcode/%E6%95%B0%E7%BB%84/%E6%A8%A1%E6%8B%9F/68_%E6%96%87%E6%9C%AC%E5%B7%A6%E5%8F%B3%E5%AF%B9%E9%BD%90/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://muzimi.org/docs/leetcode/%E6%95%B0%E7%BB%84/%E6%A8%A1%E6%8B%9F/68_%E6%96%87%E6%9C%AC%E5%B7%A6%E5%8F%B3%E5%AF%B9%E9%BD%90/</guid>
      <description>&lt;h2 id=&#34;题目描述&#34;&gt;题目描述&lt;a class=&#34;anchor&#34; href=&#34;#%e9%a2%98%e7%9b%ae%e6%8f%8f%e8%bf%b0&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;给定一个单词数组 &lt;code&gt;words&lt;/code&gt; 和整数 &lt;code&gt;maxWidth&lt;/code&gt;，需要把单词排成多行文本，并满足：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;每行长度恰好为 &lt;code&gt;maxWidth&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;除最后一行外，左右两端对齐&lt;/li&gt;&#xA;&lt;li&gt;单词间空格尽量均匀分配；如果不能均分，左侧间隙比右侧多&lt;/li&gt;&#xA;&lt;li&gt;最后一行左对齐，单词间只放一个空格，末尾补空格&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;知识边界&#34;&gt;知识边界&lt;a class=&#34;anchor&#34; href=&#34;#%e7%9f%a5%e8%af%86%e8%be%b9%e7%95%8c&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;这题本质是&lt;strong&gt;贪心 + 字符串模拟&lt;/strong&gt;。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
