mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 19:53:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
给你两个只包含 1 到 9 之间数字的数组 <code>nums1</code> 和 <code>nums2</code> ,每个数组中的元素 <strong>互不相同</strong> ,请你返回 <strong>最小</strong> 的数字,两个数组都 <strong>至少</strong> 包含这个数字的某个数位。
 | 
						||
<p> </p>
 | 
						||
 | 
						||
<p><strong>示例 1:</strong></p>
 | 
						||
 | 
						||
<pre><b>输入:</b>nums1 = [4,1,3], nums2 = [5,7]
 | 
						||
<b>输出:</b>15
 | 
						||
<b>解释:</b>数字 15 的数位 1 在 nums1 中出现,数位 5 在 nums2 中出现。15 是我们能得到的最小数字。
 | 
						||
</pre>
 | 
						||
 | 
						||
<p><strong>示例 2:</strong></p>
 | 
						||
 | 
						||
<pre><b>输入:</b>nums1 = [3,5,2,6], nums2 = [3,1,7]
 | 
						||
<b>输出:</b>3
 | 
						||
<b>解释:</b>数字 3 的数位 3 在两个数组中都出现了。
 | 
						||
</pre>
 | 
						||
 | 
						||
<p> </p>
 | 
						||
 | 
						||
<p><strong>提示:</strong></p>
 | 
						||
 | 
						||
<ul>
 | 
						||
	<li><code>1 <= nums1.length, nums2.length <= 9</code></li>
 | 
						||
	<li><code>1 <= nums1[i], nums2[i] <= 9</code></li>
 | 
						||
	<li>每个数组中,元素 <strong>互不相同</strong> 。</li>
 | 
						||
</ul>
 |