mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 11:43:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<p>你有 <code>k</code> 个 <strong>非递减排列</strong> 的整数列表。找到一个 <strong>最小 </strong>区间,使得 <code>k</code> 个列表中的每个列表至少有一个数包含在其中。</p>
 | 
						||
 | 
						||
<p>我们定义如果 <code>b-a < d-c</code> 或者在 <code>b-a == d-c</code> 时 <code>a < c</code>,则区间 <code>[a,b]</code> 比 <code>[c,d]</code> 小。</p>
 | 
						||
 | 
						||
<p> </p>
 | 
						||
 | 
						||
<p><strong>示例 1:</strong></p>
 | 
						||
 | 
						||
<pre>
 | 
						||
<strong>输入:</strong>nums = [[4,10,15,24,26], [0,9,12,20], [5,18,22,30]]
 | 
						||
<strong>输出:</strong>[20,24]
 | 
						||
<strong>解释:</strong> 
 | 
						||
列表 1:[4, 10, 15, 24, 26],24 在区间 [20,24] 中。
 | 
						||
列表 2:[0, 9, 12, 20],20 在区间 [20,24] 中。
 | 
						||
列表 3:[5, 18, 22, 30],22 在区间 [20,24] 中。
 | 
						||
</pre>
 | 
						||
 | 
						||
<p><strong>示例 2:</strong></p>
 | 
						||
 | 
						||
<pre>
 | 
						||
<strong>输入:</strong>nums = [[1,2,3],[1,2,3],[1,2,3]]
 | 
						||
<strong>输出:</strong>[1,1]
 | 
						||
</pre>
 | 
						||
 | 
						||
<p> </p>
 | 
						||
 | 
						||
<p><strong>提示:</strong></p>
 | 
						||
 | 
						||
<ul>
 | 
						||
	<li><code>nums.length == k</code></li>
 | 
						||
	<li><code>1 <= k <= 3500</code></li>
 | 
						||
	<li><code>1 <= nums[i].length <= 50</code></li>
 | 
						||
	<li><code>-10<sup>5</sup> <= nums[i][j] <= 10<sup>5</sup></code></li>
 | 
						||
	<li><code>nums[i]</code> 按非递减顺序排列</li>
 | 
						||
</ul>
 | 
						||
 | 
						||
<p> </p>
 |