In this video we will see how to find all common elements from three arrays sorted in non-decreasing order.
Examples:
Input:
ar1[] = {1, 5, 5}
ar2[] = {3, 4, 5, 5, 10}
ar3[] = {5, 5, 10, 20}
Output: 5, 5
Check out the video to see how we implement this!!
Practice Problem: https://practice.geeksforgeeks.org/problems/common-elements5420/1
Article: https://www.geeksforgeeks.org/find-common-elements-three-sorted-arrays/
SDE Sheet: https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/