Skip to content

Latest commit

 

History

History

14-Intersection

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Intersection

Introduction

Given two sorted arrays returns a array with repeating numbers.

Example

input:

arr1 = [1,3,5,7,10]
arr2 = [2,3,6,8,10,20]  

output: [3, 10]