Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
321 stars 474 forks source link

Intersection of two sorted arrays #269

Closed Amit-45 closed 3 years ago

Amit-45 commented 3 years ago

@Ayush7614 @Amit366 Please assign me this issue I would like to solve this question as a part of the LGM-SOC'21 contest.

Given two sorted arrays, find their intersection . Example:

Input : arr1[] = {1, 2, 4, 5} arr2[] = {2, 3, 5} Output : Intersection : {2, 5}

I will be using CPP.

suy1968 commented 3 years ago

Problem statement:- Given 2 sorted arrays, find all the elements which occur in both the arrays. Input : A : [1 2 3 3 4 5 6] B : [3 3 5]

Output : [3 3 5] I am using Python3 I would like to solve this question as a part of the LGM-SOC'21 participants.

Amit366 commented 3 years ago

@suy1968 mention the language

suy1968 commented 3 years ago

@suy1968 mention the language

Mentioned

mayankmohak commented 3 years ago

@Ayush7614 @Amit366 Please assign me this issue I would like to solve this question as a part of the LGM-SOC'21 contest.

Given two sorted arrays, find their intersection . Example:

Input : arr1[] = {1, 2, 4, 5, 1, 1} arr2[] = {2, 3, 5} Output : Intersection : {2, 5}

I will be providing the solution in JAVA.