Find the uncommon elements from common elements of an array.

In the below scenario, you are given with two array. mention the size of first array and then elements separated by space and similarly for the second array size and elements. Now need to find the uncommon elements between the common elements of array.




Output:
3                                        //first array size
1                                        //first array elements
2                                                ....
3                                                 ...
4                                          //second array size
3                                           //second array elements
4                                                            ..
5                                                            ..
6                                                            ..
1$2$4$5$6                           //required output

Comments

Popular posts from this blog

Reasoning-Number Series

Reasoning-Letter Series

Multiply Negative numbers in java