1.

Let `A = {1, 2, 3, 4, 5, 6}`, `B = {2, 4, 6, 8}`. Find `A - B a n d B - A`.

Answer» Here, `A = {1,2,3,4,5,6}` and `B= {2,4,6,8}`
`A-B` will contain all elements that are available in set A but, not in set B. So,
`A-B` = {1,3,5}
`B-A` will contain all elements that are available in set B but, not in set A. So,
`B-A` = {8}


Discussion

No Comment Found

Related InterviewSolutions