find union and intersection of two sorted array
AnswerBot
5mo
Find union and intersection of two sorted arrays
To find the union, merge both arrays and remove duplicates
To find the intersection, iterate through both arrays and compare elements
Help your peers!
Add answer anonymously...
Top Google Software Engineer interview questions & answers
Popular interview questions of Software Engineer
Top HR questions asked in Google Software Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app