mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<p>Return the answer <strong>sorted</strong> by <strong>the frequency</strong> from highest to lowest. Sort the words with the same frequency by their <strong>lexicographical order</strong>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> words = ["i","love","leetcode","i","love","coding"], k = 2
|
||||
@@ -12,7 +12,7 @@
|
||||
Note that "i" comes before "love" due to a lower alphabetical order.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> words = ["the","day","is","sunny","the","the","the","sunny","is","is"], k = 4
|
||||
@@ -25,7 +25,7 @@ Note that "i" comes before "love" due to a lower alphabetica
|
||||
|
||||
<ul>
|
||||
<li><code>1 <= words.length <= 500</code></li>
|
||||
<li><code>1 <= words[i] <= 10</code></li>
|
||||
<li><code>1 <= words[i].length <= 10</code></li>
|
||||
<li><code>words[i]</code> consists of lowercase English letters.</li>
|
||||
<li><code>k</code> is in the range <code>[1, The number of <strong>unique</strong> words[i]]</code></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user