mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 11:43:12 +08:00 
			
		
		
		
	国外版
This commit is contained in:
		@@ -0,0 +1,28 @@
 | 
			
		||||
<p>Given an array of integers <code>arr</code> and an integer <code>k</code>. Find the <em>least number of unique integers</em> after removing <strong>exactly</strong> <code>k</code> elements<b>.</b></p>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<ol>
 | 
			
		||||
 | 
			
		||||
</ol>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<p> </p>
 | 
			
		||||
 | 
			
		||||
<p><strong>Example 1:</strong></p>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<pre>
 | 
			
		||||
 | 
			
		||||
<strong>Input: </strong>arr = [5,5,4], k = 1
 | 
			
		||||
 | 
			
		||||
<strong>Output: </strong>1
 | 
			
		||||
 | 
			
		||||
<strong>Explanation</strong>: Remove the single 4, only 5 is left.
 | 
			
		||||
 | 
			
		||||
</pre>
 | 
			
		||||
 | 
			
		||||
<strong>Example 2:</strong>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user