What is Pairwise distinct?

Hi! Can anyone tell me what is array with only pairwise distinct elements? Does it means unique elements?
If possible Explain me with an Example!
Thanks in advance!

1 Like

In short no number is present more than one time

1 Like

It Means all the Numbers are distinct?

Yeah I guess so

All numbers are unique.No Duplicates.

1 Like

if you choose any 2 element from an array they couldnot be the same.

1 Like

Suppose we have a list of elements where every element is of the form [a,b]
List : { {1,2} , {2,3} , {3,4} } // This list is pairwise-distinct.
List : { {1,2} , {2,3} , {3,4} , {1,2} } // This list is not pairwise-distinct. Sice the pair {1,2} comes twice in the list.
Hope that makes sense :slight_smile:

Happy Coding ! :sunglasses:


It means every coordinate is unique.
For any two points, both x and y coordinate cannot be same.

| (X,Y) | = | [X,Y] |

Hi @aon_23 :slight_smile:
Is List : {{1,2},{2,2},{2,3}} is pairwise-distinct? I think may be YES ?
Thanks in advance! :slight_smile:

yes it is. Since there’s no pair which is repeating.

1 Like