Skip to content

Commit 62da8cd

Browse files
add skeleton for 1213c
1 parent f161328 commit 62da8cd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.fishercoder.solutions;
2+
3+
import java.util.List;
4+
5+
/**
6+
* 1213. Intersection of Three Sorted Arrays
7+
*
8+
* Given three integer arrays arr1, arr2 and arr3 sorted in strictly increasing order,
9+
* return a sorted array of only the integers that appeared in all three arrays.
10+
*
11+
* Example 1:
12+
* Input: arr1 = [1,2,3,4,5], arr2 = [1,2,5,7,9], arr3 = [1,3,4,5,8]
13+
* Output: [1,5]
14+
* Explanation: Only 1 and 5 appeared in the three arrays.
15+
*
16+
* Constraints:
17+
*
18+
* 1 <= arr1.length, arr2.length, arr3.length <= 1000
19+
* 1 <= arr1[i], arr2[i], arr3[i] <= 2000
20+
* */
21+
public class _1213 {
22+
public static class Solution1 {
23+
public List<Integer> arraysIntersection(int[] arr1, int[] arr2, int[] arr3) {
24+
return null;
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy