mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 11:43:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			678 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			678 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<p>教练使用整数数组 <code>actions</code> 记录一系列核心肌群训练项目编号。为增强训练趣味性,需要将所有奇数编号训练项目调整至偶数编号训练项目之前。请将调整后的训练项目编号以 <strong>数组</strong> 形式返回。</p>
 | 
						||
 | 
						||
<p> </p>
 | 
						||
 | 
						||
<p><strong>示例 1:</strong></p>
 | 
						||
 | 
						||
<pre>
 | 
						||
<strong>输入:</strong>actions = [1,2,3,4,5]
 | 
						||
<strong>输出:</strong>[1,3,5,2,4] 
 | 
						||
<strong>解释:</strong>为正确答案之一</pre>
 | 
						||
 | 
						||
<p> </p>
 | 
						||
 | 
						||
<p><strong>提示:</strong></p>
 | 
						||
 | 
						||
<ul>
 | 
						||
	<li><code>0 <= actions.length <= 50000</code></li>
 | 
						||
	<li><code>0 <= actions[i] <= 10000</code></li>
 | 
						||
</ul>
 | 
						||
 | 
						||
<p> </p>
 |