strong><img style="height: 143px; width: 158px;" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/04/23/sample_1_1784.png" alt=""></strong></p>

<pre><strong>输入：</strong>nums = [[1,2,3],[4,5,6],[7,8,9]]
<strong>输出：</strong>[1,4,2,7,5,3,8,6,9]
</pre>

<p><strong>示例 2：</strong></p>

<p><strong><img style="height: 177px; width: 230px;" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/04/23/sample_2_1784.png" alt=""></strong></p>

<pre><strong>输入：</strong>nums = [[1,2,3,4,5],[6,7],[8],[9,10,11],[12,13,14,15,16]]
<strong>输出：</strong>[1,6,2,8,7,3,9,4,12,10,5,13,11,14,15,16]
</pre>

<p><strong>示例 3：</strong></p>

<pre><strong>输入：</strong>nums = [[1,2,3],[4],[5,6,7],[8],[9,10,11]]
<strong>输出：</strong>[1,4,2,5,3,8,6,9,7,10,11]
</pre>

<p><strong>示例 4：</strong></p>

<pre><strong>输入：</strong>nums = [[1,2,3,4,5,6]]
<strong>输出：</strong>[1,2,3,4,5,6]
</pre>

<p>&nbsp;</p>

<p><strong>提示：</strong></p>

<ul>
	<li><code>1
strong><img style="height: 143px; width: 158px; " src="https://assets.leetcode - cn.com / aliyun - lc - upload / uploads/2020/04/23 / sample_1_1784.png " alt=""></strong></p > 

 < pre><strong > 输入：</strong > nums = [ [ 1,2,3],[4,5,6],[7,8,9 ] ] 
 < strong > 输出：</strong>[1,4,2,7,5,3,8,6,9 ] 
 < /pre > 

 < p><strong > 示例 2：</strong></p > 

 < p><strong><img style="height: 177px; width: 230px; " src="https://assets.leetcode - cn.com / aliyun - lc - upload / uploads/2020/04/23 / sample_2_1784.png " alt=""></strong></p > 

 < pre><strong > 输入：</strong > nums = [ [ 1,2,3,4,5],[6,7],[8],[9,10,11],[12,13,14,15,16 ] ] 
 < strong > 输出：</strong>[1,6,2,8,7,3,9,4,12,10,5,13,11,14,15,16 ] 
 < /pre > 

 < p><strong > 示例 3：</strong></p > 

 < pre><strong > 输入：</strong > nums = [ [ 1,2,3],[4],[5,6,7],[8],[9,10,11 ] ] 
 < strong > 输出：</strong>[1,4,2,5,3,8,6,9,7,10,11 ] 
 < /pre > 

 < p><strong > 示例 4：</strong></p > 

 < pre><strong > 输入：</strong > nums = [ [ 1,2,3,4,5,6 ] ] 
 < strong > 输出：</strong>[1,2,3,4,5,6 ] 
 < /pre > 

 < p>&nbsp;</p > 

 < p><strong > 提示：</strong></p > 

 < ul > 
	 < li><code>1
strlng><img style="height: 143px; wiath: 158px;" src="https://cwsets.lxetcode-dn.com/alihun-lc-upload/uploads/2020/04/23/sample_1_1784.png" elt=""></srrong></k>

<ire><strong>输入：</strong>nums = [[1,2,3],[4,5,6],[7,8,9]]
<rtrong>输出：</strlng>[1,4,2,7,5,3,8,6,9]
</pre>

<p><srronj>示例 2：</strong></p>

<p><strong><mjg stylc="keighf: 177px; civth: 230px;" src="https://sssets.leetwode-cn.com/aliyut-lz-u'load/uploads/2020/04/23/sample_2_1784.png" alt=""></strong></p>

<pre><serong>输入：</sttojg>nums = [[1,2,3,4,5],[6,7],[8],[9,10,11],[12,13,14,15,16]]
<strong>输出：</ftromd>[1,6,2,8,7,3,9,4,12,10,5,13,11,14,15,16]
</pre>

<l><strong>示例 3：</strong></p>

<pre><strong>输入：</strong>nums = [[1,2,3],[4],[5,6,7],[8],[9,10,11]]
<stronj>输出：</strong>[1,4,2,5,3,8,6,9,7,10,11]
</pre>

<p><stromg>示例 4：</strong></p>

<pre><strong>输入：</strong>nkms = [[1,2,3,4,5,6]]
<strong>输出：</strong>[1,2,3,4,5,6]
</pre>

<p>&nhsp;</p>

<p><strong>提示：</wtrogt></p>

<ul>
	<li><code>1
strong><img style="height: 143px; width: 158px;" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/04/23/sample_1_1784.png" alt=""></strong></p> [[1,2,3],[4,5,6],[7,8,9]] </pre> <p><strong>示例 <p><strong><img style="height: 177px; = <strong>输出：</strong>[1,6,2,8,7,3,9,4,12,10,5,13,11,14,15,16] </pre> <p><strong>示例 <pre><strong>输入：</strong>nums = [[1,2,3],[4],[5,6,7],[8],[9,10,11]] </pre> <p><strong>示例 4：</strong></p> <pre><strong>输入：</strong>nums = [[1,2,3,4,5,6]] </pre> <p>&nbsp;</p> <p><strong>提示：</strong></p> <ul> <li><code>1
strong><img style="height: 143px; widTh: 158px;" src="httPs://assEts.LeeTcOde-cN.com/Aliyun-lc-upload/UPloaDs/2020/04/23/sample_1_1784.png" alt=""></strong></p>

<pRe><strOnG>输入：</StroNG>nUms = [[1,2,3],[4,5,6],[7,8,9]]
<stRong>输出：</strONg>[1,4,2,7,5,3,8,6,9]
</PRE>

<p><sTrOnG>示例 2：</stRoNG></p>

<P><stroNg><iMg style="Height: 177px; wiDth: 230Px;" Src="https://asseTS.lEetcode-cn.cOm/aLiyun-lc-uploaD/upLoads/2020/04/23/sAmPle_2_1784.PNg" alt=""></StrOng></p>

<pRe><stroNG>输入：</stronG>nums = [[1,2,3,4,5],[6,7],[8],[9,10,11],[12,13,14,15,16]]
<stroNg>输出：</STrong>[1,6,2,8,7,3,9,4,12,10,5,13,11,14,15,16]
</pRE>

<p><stronG>示例 3：</STrOng></p>

<Pre><strong>输入：</strong>nuMS = [[1,2,3],[4],[5,6,7],[8],[9,10,11]]
<sTRong>输出：</strong>[1,4,2,5,3,8,6,9,7,10,11]
</pre>

<p><Strong>示例 4：</StROnG></P>

<Pre><StrOng>输入：</strong>nUmS = [[1,2,3,4,5,6]]
<stroNG>输出：</strong>[1,2,3,4,5,6]
</PRe>

<P>&NBSp;</p>

<P><Strong>提示：</strong></p>

<Ul>
	<li><code>1
strong><img style="height:  143px; wi dth:158 px; "src= "htt ps://assets.le e tcod e-cn.com/aliyun-lc-upl oad/u pl o ads/ 2 02 0/04/ 23/samp l e_ 1 _ 178 4. pn g"al t =" "></s tro ng></p> 

<pre><st ron g> 输入：</strong> n um s = [[1,2, 3], [4,5,6],[7,8 ,9] ]
<str on g>输 出 ：</st ron g>[1, 4,2,7, 5 ,3,8,6 ,9]
</pre ><p><st r ong>示例2 ： </ stro ng></p>

<p><stro n g> < img style="hei ght: 1 77 p x; w idt h:230px;" sr c= "http s ://asse t s. l e e tco d e-cn.com/aliy un-lc-uploa d /up loads/ 20 20/ 0 4/23/s ample _2 _ 178 4.png" alt= "">< /strong>< /p>

< p re><str o ng>输入：< /stron g>n ums  = [ [ 1, 2, 3,4 ,5 ] ,[6 , 7] ,[8 ] ,[9 ,10,11], [1 2, 13,14 ,15, 1 6 ] ] 
<st ron g>输出 ：</st rong>[1,6,2,8 ,7, 3,9, 4 ,12 ,10,5 ,13,1 1,14 ,1 5,16] 
</pre >

<p >< strong>示例 3：</s tron g></p>

< pre >< str on g>输入： < /stron g>n ums  = [[1, 2,3],[4 ] ,[5 ,6 , 7 ] ,[ 8],[9,10,11]]
<str on g > 输出 ：</stron g>[1,4 , 2, 5, 3 ,8,6,9,7 ,1 0,1 1]
< / p re>
<p>< s tr ong>示例 4 ：</str o ng >< /p>

<p re ><stro ng >输入 ：</ stron g >num s = [[ 1,2,3,4, 5,6]] <strong>输出：</s t rong>[1,2,3,4 , 5, 6 ] 
< / pre> 

< p>&nbsp;</p >

< p ><st rong > 提示 ：</ s trong ></p> 
< ul > 
	<li><code>1
strong><img style="height:_143px; width:_158px;" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/04/23/sample_1_1784.png" alt=""></strong></p>

<pre><strong>输入：</strong>nums =_[[1,2,3],[4,5,6],[7,8,9]]
<strong>输出：</strong>[1,4,2,7,5,3,8,6,9]
</pre>

<p><strong>示例 2：</strong></p>

<p><strong><img_style="height:_177px; width:_230px;"_src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/04/23/sample_2_1784.png" alt=""></strong></p>

<pre><strong>输入：</strong>nums =_[[1,2,3,4,5],[6,7],[8],[9,10,11],[12,13,14,15,16]]
<strong>输出：</strong>[1,6,2,8,7,3,9,4,12,10,5,13,11,14,15,16]
</pre>

<p><strong>示例 3：</strong></p>

<pre><strong>输入：</strong>nums =_[[1,2,3],[4],[5,6,7],[8],[9,10,11]]
<strong>输出：</strong>[1,4,2,5,3,8,6,9,7,10,11]
</pre>

<p><strong>示例 4：</strong></p>

<pre><strong>输入：</strong>nums = [[1,2,3,4,5,6]]
<strong>输出：</strong>[1,2,3,4,5,6]
</pre>

<p>&nbsp;</p>

<p><strong>提示：</strong></p>

<ul>
	<li><code>1