1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-11 18:31:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

批量更新数据

This commit is contained in:
2025-01-09 20:29:41 +08:00
parent 04ecea043d
commit 48cdd06c2b
5053 changed files with 156164 additions and 135322 deletions

View File

@@ -1,9 +1,9 @@
<p>写一个 bash 脚本以统计一个文本文件&nbsp;<code>words.txt</code>&nbsp;中每个单词出现的频率</p>
<p>写一个 bash 脚本以统计一个文本文件&nbsp;<code>words.txt</code>&nbsp;中每个单词出现的<span data-keyword="frequency-textfile">频率</span></p>
<p>为了简单起见,你可以假设:</p>
<ul>
<li><code>words.txt</code>只包括小写字母和&nbsp;<code>&#39; &#39;</code>&nbsp;</li>
<li><code>words.txt</code>只包括小写字母和&nbsp;<code>' '</code>&nbsp;</li>
<li>每个单词只由小写字母组成。</li>
<li>单词间由一个或多个空格字符分隔。</li>
</ul>
@@ -12,13 +12,15 @@
<p>假设 <code>words.txt</code> 内容如下:</p>
<pre>the day is sunny the the
<pre>
the day is sunny the the
the sunny is is
</pre>
<p>你的脚本应当输出(以词频降序排列):</p>
<pre>the 4
<pre>
the 4
is 3
sunny 2
day 1