1.

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

Answer» For two sets `X` and `Y`, set `X-Y` contains the elements that are present in set `X` but not in set `Y`.
Here, `A = {1,2,3,4,5,6} and B = {2,4,6,8}`
`:. A - B = {1,3,5}`
`B-A = {8}`


Discussion

No Comment Found

Related InterviewSolutions