Skip to content

Commit e6d114e

Browse files
committed
Readme
1 parent 361d1c9 commit e6d114e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

1054-distant-barcodes/README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<p>In a warehouse, there is a row of barcodes, where the <code>i<sup>th</sup></code> barcode is <code>barcodes[i]</code>.</p>
2+
3+
<p>Rearrange the barcodes so that no two adjacent barcodes are equal. You may return any answer, and it is guaranteed an answer exists.</p>
4+
5+
<p>&nbsp;</p>
6+
<p><strong class="example">Example 1:</strong></p>
7+
<pre><strong>Input:</strong> barcodes = [1,1,1,2,2,2]
8+
<strong>Output:</strong> [2,1,2,1,2,1]
9+
</pre><p><strong class="example">Example 2:</strong></p>
10+
<pre><strong>Input:</strong> barcodes = [1,1,1,1,2,2,3,3]
11+
<strong>Output:</strong> [1,3,1,3,1,2,1,2]
12+
</pre>
13+
<p>&nbsp;</p>
14+
<p><strong>Constraints:</strong></p>
15+
16+
<ul>
17+
<li><code>1 &lt;= barcodes.length &lt;= 10000</code></li>
18+
<li><code>1 &lt;= barcodes[i] &lt;= 10000</code></li>
19+
</ul>

0 commit comments

Comments
 (0)