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!
In short no number is present more than one time
It Means all the Numbers are distinct?
Yeah I guess so
All numbers are unique.No Duplicates.
if you choose any 2 element from an array they couldnot be the same.
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
Happy Coding !
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
Is List : {{1,2},{2,2},{2,3}} is pairwise-distinct? I think may be YES ?
Thanks in advance!
yes it is. Since there’s no pair which is repeating.