Skip to content

Commit 38d0a14

Browse files
committed
Create README - LeetHub
1 parent 51a8f19 commit 38d0a14

File tree

1 file changed

+25
-0
lines changed
  • 1149-intersection-of-three-sorted-arrays

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<h2><a href="https://leetcode.com/problems/intersection-of-three-sorted-arrays">1149. Intersection of Three Sorted Arrays</a></h2><h3>Easy</h3><hr><p>Given three integer arrays <code>arr1</code>, <code>arr2</code> and <code>arr3</code>&nbsp;<strong>sorted</strong> in <strong>strictly increasing</strong> order, return a sorted array of <strong>only</strong>&nbsp;the&nbsp;integers that appeared in <strong>all</strong> three arrays.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="example">Example 1:</strong></p>
5+
6+
<pre>
7+
<strong>Input:</strong> arr1 = [1,2,3,4,5], arr2 = [1,2,5,7,9], arr3 = [1,3,4,5,8]
8+
<strong>Output:</strong> [1,5]
9+
<strong>Explanation: </strong>Only 1 and 5 appeared in the three arrays.
10+
</pre>
11+
12+
<p><strong class="example">Example 2:</strong></p>
13+
14+
<pre>
15+
<strong>Input:</strong> arr1 = [197,418,523,876,1356], arr2 = [501,880,1593,1710,1870], arr3 = [521,682,1337,1395,1764]
16+
<strong>Output:</strong> []
17+
</pre>
18+
19+
<p>&nbsp;</p>
20+
<p><strong>Constraints:</strong></p>
21+
22+
<ul>
23+
<li><code>1 &lt;= arr1.length, arr2.length, arr3.length &lt;= 1000</code></li>
24+
<li><code>1 &lt;= arr1[i], arr2[i], arr3[i] &lt;= 2000</code></li>
25+
</ul>

0 commit comments

Comments
 (0)