|
2 | 2 |
|
3 | 3 | <p> </p> |
4 | 4 | <p><strong class="example">Example 1:</strong></p> |
5 | | -<pre><strong>Input:</strong> nums = [1,2,3,1] |
6 | | -<strong>Output:</strong> true |
7 | | -</pre><p><strong class="example">Example 2:</strong></p> |
8 | | -<pre><strong>Input:</strong> nums = [1,2,3,4] |
9 | | -<strong>Output:</strong> false |
10 | | -</pre><p><strong class="example">Example 3:</strong></p> |
11 | | -<pre><strong>Input:</strong> nums = [1,1,1,3,3,4,3,2,4,2] |
12 | | -<strong>Output:</strong> true |
13 | | -</pre> |
| 5 | + |
| 6 | +<div class="example-block"> |
| 7 | +<p><strong>Input:</strong> <span class="example-io">nums = [1,2,3,1]</span></p> |
| 8 | + |
| 9 | +<p><strong>Output:</strong> <span class="example-io">true</span></p> |
| 10 | + |
| 11 | +<p><strong>Explanation:</strong></p> |
| 12 | + |
| 13 | +<p>The element 1 occurs at the indices 0 and 3.</p> |
| 14 | +</div> |
| 15 | + |
| 16 | +<p><strong class="example">Example 2:</strong></p> |
| 17 | + |
| 18 | +<div class="example-block"> |
| 19 | +<p><strong>Input:</strong> <span class="example-io">nums = [1,2,3,4]</span></p> |
| 20 | + |
| 21 | +<p><strong>Output:</strong> <span class="example-io">false</span></p> |
| 22 | + |
| 23 | +<p><strong>Explanation:</strong></p> |
| 24 | + |
| 25 | +<p>All elements are distinct.</p> |
| 26 | +</div> |
| 27 | + |
| 28 | +<p><strong class="example">Example 3:</strong></p> |
| 29 | + |
| 30 | +<div class="example-block"> |
| 31 | +<p><strong>Input:</strong> <span class="example-io">nums = [1,1,1,3,3,4,3,2,4,2]</span></p> |
| 32 | + |
| 33 | +<p><strong>Output:</strong> <span class="example-io">true</span></p> |
| 34 | +</div> |
| 35 | + |
14 | 36 | <p> </p> |
15 | 37 | <p><strong>Constraints:</strong></p> |
16 | 38 |
|
|
0 commit comments