Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding

Union of Array Lists

Language Java | Level Intermediate | Category Data structure | September 8, 2015 9:47 am

Data structure Description

Two arrays (example array1 and array2) contains the list of string. Write a program to find Intersection and union of Array Lists.



Array 1 items: [A, B, C]
Array 2 items: [B, C, D, E, F]
Intersection of two arrays: [B, C]
Union of two arrays: [A, B, C, D, E, F]



No comments available!

Please login to add comments.