Lakhankumawat/LearnCPP

Finding intersection of two arrays

Rishita489 opened this issue · 5 comments

Description

You have been given two integer arrays/list(ARR1 and ARR2) of size N and M, respectively. You need to print their intersection; An intersection for this problem can be defined when both the arrays/lists contain a particular value or to put it in other words, when there is a common value that exists in both the arrays/lists.

INPUT
2 3 4 5 6
2 4 9

OUTPUT
2 4

Domain

Competitive Programming

Type of Contribution

Addition

Code of Conduct

Hello @Rishita489, thanks for creating your first issue at LearnCPP, hope you followed the guidelines.

/assign

This issue has been assigned to Rishita489!
It will become unassigned if it is not closed within 12 days. A maintainer can also add the pinned label to prevent it from being unassigned.

Hey I am a GSSOC'22 contributor . I have solved the issue . Can you please review and merge it .

This issue is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 2 days.